diff options
author | Chris Cornutt <enygma@phpdeveloper.org> | 2014-12-12 21:42:51 -0600 |
---|---|---|
committer | Chris Cornutt <enygma@phpdeveloper.org> | 2014-12-12 21:42:51 -0600 |
commit | 334465d69aad14d1a7336b835ce7c8540af8c6bf (patch) | |
tree | be418edecee78edf60c5e41885cc72c9e4748d0f /docs | |
parent | 875f253d8b6f58a6effe91b11303ade69796bbc8 (diff) | |
download | gatekeeper-334465d69aad14d1a7336b835ce7c8540af8c6bf.zip gatekeeper-334465d69aad14d1a7336b835ce7c8540af8c6bf.tar.gz gatekeeper-334465d69aad14d1a7336b835ce7c8540af8c6bf.tar.bz2 |
updating inGroup docs
Diffstat (limited to 'docs')
-rw-r--r-- | docs/groups.md | 3 |
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!'; } ?> |