mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 51762 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r51762 | ischommer | 2008-03-27 17:47:14 +1300 (Thu, 27 Mar 2008) | 1 line ENHANCEMENT prepared for subclassing groups ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52415 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b38c0d0941
commit
f996d29e5b
@ -525,7 +525,7 @@ class Security extends Controller {
|
|||||||
$permission = DataObject::get_one("Permission", "`Code` = 'ADMIN'", true, "ID");
|
$permission = DataObject::get_one("Permission", "`Code` = 'ADMIN'", true, "ID");
|
||||||
|
|
||||||
$adminGroup = null;
|
$adminGroup = null;
|
||||||
if($permission) $adminGroup = DataObject::get_one("Group", "`ID` = '{$permission->GroupID}'", true, "ID");
|
if($permission) $adminGroup = DataObject::get_one("Group", "`Group`.`ID` = '{$permission->GroupID}'", true, "`Group`.`ID`");
|
||||||
|
|
||||||
if($adminGroup) {
|
if($adminGroup) {
|
||||||
if($adminGroup->Members()->First()) {
|
if($adminGroup->Members()->First()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user