SilverStripe\Subsites\Model\Subsite::hasMainSitePermission
Checks if a member can be granted certain permissions, regardless of the subsite context.
Similar logic to , but only returns TRUE if the member is part of a group with the "AccessAllSubsites" flag set. If more than one permission is passed to the method, at least one of them must be granted for if to return TRUE.
Signature
public function hasMainSitePermission([
$member = NULL,
[array
$permissionCodes = ]] )
Parameters
$member
—$permissionCodes
— array
Returns
- bool
Line | Task |
---|---|
612+ | Allow permission inheritance through group hierarchy. |