diff --git a/code/Subsite.php b/code/Subsite.php index 10cb20a..146261b 100644 --- a/code/Subsite.php +++ b/code/Subsite.php @@ -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);