]> git.stg.codes - stg.git/commitdiff
Exclude DEL_USER_NOTIFIER from AUTH_IA (possible freandship fix)
authorMaxim Mamontov <faust.madf@gmail.com>
Mon, 4 Apr 2011 13:32:13 +0000 (16:32 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Mon, 4 Apr 2011 13:32:13 +0000 (16:32 +0300)
projects/stargazer/plugins/authorization/inetaccess/inetaccess.h

index 68c9e87a5cbf6c4249eb4375a0618ae380558747..e28aad8f9c6c1fe7115a948eb0d27bb16ce1b9b3 100644 (file)
@@ -185,6 +185,18 @@ private:
     FREEMB          freeMbShowType;
 };
 //-----------------------------------------------------------------------------
+class AUTH_IA;
+//-----------------------------------------------------------------------------
+class DEL_USER_NOTIFIER: public NOTIFIER_BASE<USER_PTR> {
+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<USER_PTR> {
-    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<const std::pair<uint32_t, IA_USER> &, void> {
         public:
@@ -343,5 +343,10 @@ private:
 
 };
 //-----------------------------------------------------------------------------
+inline
+void DEL_USER_NOTIFIER::Notify(const USER_PTR & user)
+{
+    auth.DelUser(user);
+}
 
 #endif