summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2015-07-27 10:27:11 -0500
committerChris Cornutt <enygma@phpdeveloper.org>2015-07-27 10:27:11 -0500
commit9deb731ab26ff0efcd3f57a501df24b33fa5e9d4 (patch)
treeb824113516a99f8be6729278bf732d7f664c68c7
parent61328123ea4cfbd9a71da699e7a8e1d5fdf2de3c (diff)
downloadgatekeeper-9deb731ab26ff0efcd3f57a501df24b33fa5e9d4.zip
gatekeeper-9deb731ab26ff0efcd3f57a501df24b33fa5e9d4.tar.gz
gatekeeper-9deb731ab26ff0efcd3f57a501df24b33fa5e9d4.tar.bz2
fixing bug in inGroup where the validation was too strict
-rw-r--r--src/Psecio/Gatekeeper/UserModel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Psecio/Gatekeeper/UserModel.php b/src/Psecio/Gatekeeper/UserModel.php
index adf112e..79a950b 100644
--- a/src/Psecio/Gatekeeper/UserModel.php
+++ b/src/Psecio/Gatekeeper/UserModel.php
@@ -386,7 +386,7 @@ class UserModel extends \Psecio\Gatekeeper\Model\Mysql
if ($userGroup->id === null) {
return false;
}
- return ($userGroup->id !== null && $userGroup->groupId === $groupId) ? true : false;
+ return ($userGroup->id !== null && $userGroup->groupId == $groupId) ? true : false;
}
/**