]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/authorization/ao/ao.cpp
Use async pool instead of EVENT_LOOP.
[stg.git] / projects / stargazer / plugins / authorization / ao / ao.cpp
index 78e1c955e9cfc96278edfb270d71b1c295761466..1145d679cdc54045709f0ac4ce37519c5a54ed2e 100644 (file)
@@ -213,7 +213,6 @@ return -1;
 template <typename varParamType>
 void CHG_BEFORE_NOTIFIER<varParamType>::notify(const varParamType &, const varParamType &)
 {
-//EVENT_LOOP_SINGLETON::GetInstance().Enqueue(auth, &AUTH_AO::Unauthorize, user);
 if (user->IsAuthorizedBy(&auth))
     auth.users->Unauthorize(user->GetLogin(), &auth);
 }
@@ -221,7 +220,6 @@ if (user->IsAuthorizedBy(&auth))
 template <typename varParamType>
 void CHG_AFTER_NOTIFIER<varParamType>::notify(const varParamType &, const varParamType &)
 {
-//EVENT_LOOP_SINGLETON::GetInstance().Enqueue(auth, &AUTH_AO::UpdateUserAuthorization, user);
 auth.UpdateUserAuthorization(user);
 }
 //-----------------------------------------------------------------------------