]> git.andy128k.dev Git - ipf.git/commitdiff
fix permission generation
authorAndrey Kutejko <andy128k@gmail.com>
Tue, 6 Aug 2013 19:39:02 +0000 (22:39 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Tue, 6 Aug 2013 19:39:02 +0000 (22:39 +0300)
ipf/auth/app.php

index f96181e87ec11d162813eb41129b58e041158356..9e064e5c2a61ae647a6d81b2a161ab393dfbbf32 100644 (file)
@@ -42,7 +42,7 @@ class IPF_Auth_App extends IPF_Application
                 $adminModel = IPF_Admin_Model::getModelAdmin($modelName);
                 if ($adminModel) {
                     foreach ($adminModel->getPerms(null) as $permName) {
-                        $permissions[] = $appname.'|'.$modelName.'|'.$permName;
+                        $permissions[] = get_class($app).'|'.$modelName.'|'.$permName;
                     }
                 }
             }