summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Psecio/Gatekeeper/PermissionCollection.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/Psecio/Gatekeeper/PermissionCollection.php b/src/Psecio/Gatekeeper/PermissionCollection.php
index bd5f532..799abe4 100644
--- a/src/Psecio/Gatekeeper/PermissionCollection.php
+++ b/src/Psecio/Gatekeeper/PermissionCollection.php
@@ -5,26 +5,6 @@ namespace Psecio\Gatekeeper;
class PermissionCollection extends \Psecio\Gatekeeper\Collection\Mysql
{
/**
- * Find the permissions for a given user ID
- *
- * @param integer $userId User ID
- */
- public function findByUserId($userId)
- {
- $data = array('userId' => $userId);
- $sql = 'select p.* from permissions p, user_permission up'
- .' where p.id = up.permission_id'
- .' and up.user_id = :userId';
-
- $results = $this->getDb()->fetch($sql, $data);
-
- foreach ($results as $result) {
- $perm = new PermissionModel($this->getDb(), $result);
- $this->add($perm);
- }
- }
-
- /**
* Find the permissions for the given group ID
*
* @param integer $groupId Group ID