summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2014-12-12 21:42:51 -0600
committerChris Cornutt <enygma@phpdeveloper.org>2014-12-12 21:42:51 -0600
commit334465d69aad14d1a7336b835ce7c8540af8c6bf (patch)
treebe418edecee78edf60c5e41885cc72c9e4748d0f /docs
parent875f253d8b6f58a6effe91b11303ade69796bbc8 (diff)
downloadgatekeeper-334465d69aad14d1a7336b835ce7c8540af8c6bf.zip
gatekeeper-334465d69aad14d1a7336b835ce7c8540af8c6bf.tar.gz
gatekeeper-334465d69aad14d1a7336b835ce7c8540af8c6bf.tar.bz2
updating inGroup docs
Diffstat (limited to 'docs')
-rw-r--r--docs/groups.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/groups.md b/docs/groups.md
index d02ff41..5bf2386 100644
--- a/docs/groups.md
+++ b/docs/groups.md
@@ -46,7 +46,8 @@ You can use the `inGroup` method to check and see if a user ID is in a group:
```php
<?php
-if (Gatekeeper::findGroupById(1)->inGroup(1) === true) {
+$userId = 1;
+if (Gatekeeper::findGroupById(1)->inGroup($userId) === true) {
echo 'User is in the group!';
}
?>