summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2014-12-13 20:36:49 -0600
committerChris Cornutt <enygma@phpdeveloper.org>2014-12-13 20:36:49 -0600
commit335f5875a87d2eca55dbafeb9c8f42f3eaac41c9 (patch)
tree9a4b38d750f105b4697b7a232d112a616f881e98 /src
parentc42eb14130897b7c6f4e7d583c1aef1396e418a1 (diff)
downloadgatekeeper-335f5875a87d2eca55dbafeb9c8f42f3eaac41c9.zip
gatekeeper-335f5875a87d2eca55dbafeb9c8f42f3eaac41c9.tar.gz
gatekeeper-335f5875a87d2eca55dbafeb9c8f42f3eaac41c9.tar.bz2
adding permissions property to user
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'
+ )
)
);