mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX Fixed Subsite->hasMainSitePermission() to use Member->ID in checkPermission() in order to support 2.2
This commit is contained in:
parent
c004c15e35
commit
2d4a999bfc
@ -353,7 +353,7 @@ JS;
|
||||
|
||||
if(!$member) $member = Member::currentMember();
|
||||
|
||||
if(Permission::checkMember($member, "ADMIN")) return true;
|
||||
if(Permission::checkMember($member->ID, "ADMIN")) return true;
|
||||
|
||||
$SQLa_perm = Convert::raw2sql($permissionCodes);
|
||||
$SQL_perms = join("','", $SQLa_perm);
|
||||
|
Loading…
Reference in New Issue
Block a user