]> git.andy128k.dev Git - ipf.git/commitdiff
auth models
authorAndrey Kutejko <andy128k@gmail.com>
Tue, 6 Aug 2013 20:04:24 +0000 (23:04 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Tue, 6 Aug 2013 20:04:24 +0000 (23:04 +0300)
ipf/auth/app.php

index 9e064e5c2a61ae647a6d81b2a161ab393dfbbf32..a727b07cb9429d8a3a459386a132ce87bc71c9f7 100644 (file)
@@ -5,7 +5,18 @@ class IPF_Auth_App extends IPF_Application
     public function __construct()
     {
         parent::__construct(array(
-            'models' => self::ArePermissionsEnabled() ? array('User', 'Role') : array('User'),
+            'models' => self::ArePermissionsEnabled()
+                ? array(
+                    'User',
+                    'Role',
+                    'Permission',
+                    'UserPermission',
+                    'RolePermission',
+                    'UserRole',
+                )
+                : array(
+                    'User',
+                ),
         ));
     }