From b76badb6c7cb454c3ee849b40dc0ac5bc66b632c Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 20 Feb 2013 22:00:40 +0200 Subject: [PATCH 1/1] AO: don't unauthorize user that was not authorized by us. --- projects/stargazer/plugins/authorization/ao/ao.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.44.2