From: Maxim Mamontov Date: Mon, 4 Apr 2011 13:32:13 +0000 (+0300) Subject: Exclude DEL_USER_NOTIFIER from AUTH_IA (possible freandship fix) X-Git-Tag: 2.407-rc3~102 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/a1049689fc6ed5d9c232278176fcddf2db3000da?ds=sidebyside Exclude DEL_USER_NOTIFIER from AUTH_IA (possible freandship fix) --- diff --git a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h index 68c9e87a..e28aad8f 100644 --- a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h +++ b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h @@ -185,6 +185,18 @@ private: FREEMB freeMbShowType; }; //----------------------------------------------------------------------------- +class AUTH_IA; +//----------------------------------------------------------------------------- +class DEL_USER_NOTIFIER: public NOTIFIER_BASE { +public: + DEL_USER_NOTIFIER(AUTH_IA & a) : auth(a) {} + virtual ~DEL_USER_NOTIFIER() {} + + void Notify(const USER_PTR & user); +private: + AUTH_IA & auth; +}; +//----------------------------------------------------------------------------- class AUTH_IA :public AUTH { friend class DEL_USER_NOTIFIER; public: @@ -316,19 +328,7 @@ private: uint32_t enabledDirs; - class DEL_USER_NOTIFIER: public NOTIFIER_BASE { - public: - DEL_USER_NOTIFIER(AUTH_IA & a) : auth(a) {} - virtual ~DEL_USER_NOTIFIER() {} - - void Notify(const USER_PTR & user) - { - auth.DelUser(user); - } - - private: - AUTH_IA & auth; - } onDelUserNotifier; + DEL_USER_NOTIFIER onDelUserNotifier; class UnauthorizeUser : std::unary_function &, void> { public: @@ -343,5 +343,10 @@ private: }; //----------------------------------------------------------------------------- +inline +void DEL_USER_NOTIFIER::Notify(const USER_PTR & user) +{ + auth.DelUser(user); +} #endif