diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs index 534dbce8..620d7428 100644 --- a/src/db/models/organization.rs +++ b/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; }