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
2022-09-12 16:08:36 +02:00
parent edca4248aa
commit e47a2fd0f3
2 changed files with 57 additions and 9 deletions

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;
}