mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #693 from jakr/trac7733_v2
Temporary fix to example code in docs/en/topics/datamodel.md (Ticket 7733).
This commit is contained in:
commit
daceab2dcd
@ -262,7 +262,7 @@ other words, it will return all administrators.
|
||||
|
||||
:::php
|
||||
$members = Member::get()->filter(array(
|
||||
'Groups.Permissions.Code' => 'ADMIN',
|
||||
'Groups.Permissions.Code:ExactMatch' => 'ADMIN',
|
||||
));
|
||||
|
||||
Note that we are just joining these tables to filter the records. Even if a member is in more than 1 administrator
|
||||
|
Loading…
x
Reference in New Issue
Block a user