summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Psecio/Gatekeeper/UserModel.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Psecio/Gatekeeper/UserModel.php b/src/Psecio/Gatekeeper/UserModel.php
index 7450965..ba068a7 100644
--- a/src/Psecio/Gatekeeper/UserModel.php
+++ b/src/Psecio/Gatekeeper/UserModel.php
@@ -81,6 +81,15 @@ class UserModel extends \Psecio\Gatekeeper\Model\Mysql
'method' => 'findByUserId',
'local' => 'id'
)
+ ),
+ 'permissions' => array(
+ 'description' => 'Permissions the user has',
+ 'type' => 'relation',
+ 'relation' => array(
+ 'model' => '\\Psecio\\Gatekeeper\\PermissionCollection',
+ 'method' => 'findByUserId',
+ 'local' => 'id'
+ )
)
);