Rename/Fix revoke/restore endpoints

In web-vault v2022.9.x it seems the endpoints changed.
 - activate > restore
 - deactivate > revoke

This PR adds those endpoints and renames the functions.
It also keeps the previous endpoints for now to be compatible with
previous vault verions for now, just in case.
This commit is contained in:
BlackDex committed 2022-09-12 16:08:36 +02:00
1 parent edca4248aa
commit e47a2fd0f3
2 files changed
+57 -9

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ impl UserOrganization {
}
}
pub fn activate(&mut self) {
pub fn restore(&mut self) {
if self.status < UserOrgStatus::Accepted as i32 {
self.status += ACTIVATE_REVOKE_DIFF;
}