Browse Source

Fix BWDC when re-run with cleared cache

Using the BWDC with a cleared cache caused invited users to be converted
to accepted users.

The problem was a wrong check for the `restore` function.

Fixes #4114
pull/4143/head
BlackDex 2 years ago
parent
commit
56d47d94f7
No known key found for this signature in database GPG Key ID: 58C80A2AA6C765E1
  1. 2
      src/db/models/organization.rs

2
src/db/models/organization.rs

@ -214,7 +214,7 @@ impl UserOrganization {
}
pub fn restore(&mut self) -> bool {
if self.status < UserOrgStatus::Accepted as i32 {
if self.status < UserOrgStatus::Invited as i32 {
self.status += ACTIVATE_REVOKE_DIFF;
return true;
}

Loading…
Cancel
Save