X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/3374076d37caa383605c0db0c71e9d17363b91c3..b76badb6c7cb454c3ee849b40dc0ac5bc66b632c:/projects/stargazer/plugins/authorization/ao/ao.cpp diff --git a/projects/stargazer/plugins/authorization/ao/ao.cpp b/projects/stargazer/plugins/authorization/ao/ao.cpp index 9640e2e8..100e0557 100644 --- a/projects/stargazer/plugins/authorization/ao/ao.cpp +++ b/projects/stargazer/plugins/authorization/ao/ao.cpp @@ -242,7 +242,8 @@ UpdateUserAuthorization(u); //----------------------------------------------------------------------------- void AUTH_AO::DelUser(USER_PTR u) { -users->Unauthorize(u->GetLogin(), this); +if (u->IsAuthorizedBy(this)) + users->Unauthorize(u->GetLogin(), this); UnSetUserNotifiers(u); usersList.remove(u); }