summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2015-06-11 09:40:31 -0500
committerChris Cornutt <enygma@phpdeveloper.org>2015-06-11 09:40:31 -0500
commit29e7ddabb31f04f8fe21a9a16925f36449c52a8f (patch)
tree01ecfcc63da95b9a71abdb5971a0e43f18d1cda9
parent0c04ffbb487a2f93fc3b5938a1804c54f659c00f (diff)
downloadgatekeeper-29e7ddabb31f04f8fe21a9a16925f36449c52a8f.zip
gatekeeper-29e7ddabb31f04f8fe21a9a16925f36449c52a8f.tar.gz
gatekeeper-29e7ddabb31f04f8fe21a9a16925f36449c52a8f.tar.bz2
fixing misspelled column name in PermissionCollection
-rw-r--r--src/Psecio/Gatekeeper/PermissionCollection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Psecio/Gatekeeper/PermissionCollection.php b/src/Psecio/Gatekeeper/PermissionCollection.php
index 2826530..6fa13ab 100644
--- a/src/Psecio/Gatekeeper/PermissionCollection.php
+++ b/src/Psecio/Gatekeeper/PermissionCollection.php
@@ -14,7 +14,7 @@ class PermissionCollection extends \Psecio\Gatekeeper\Collection\Mysql
$prefix = $this->getPrefix();
$data = array('groupId' => $groupId);
$sql = 'select p.* from '.$prefix.'permissions p, '.$prefix.'group_permission gp'
- .' where p.id = gp.permision_id'
+ .' where p.id = gp.permission_id'
.' and gp.group_id = :groupId';
$results = $this->getDb()->fetch($sql, $data);