Sminnee\MicroACL\ACLExtension
Synopsis
class ACLExtension
extends DataExtension
implements
PermissionProvider
{
- // members
- private static array $db = ;
- // methods
- public void updateCMSFields()
- public void getViewGroups()
- public void getEditGroups()
- public void getViewRoles()
- public void getEditRoles()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
- protected void groupsWithPermission()
- protected void rolesWithPermission()
- protected void getPermissionCodes()
- public void providePermissions()
- private void providePermissionsFor()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Implements
- SilverStripe\Security\PermissionProvider
Members
private
- $db
Methods
private
- providePermissionsFor() — Provide permissions for one permission type on one class
protected
- getPermissionCodes() — Return the permission codes that will grant the given access right
- groupsWithPermission() — Return the groups with the given access right granted Excldues groups that have the right granted via role
- rolesWithPermission() — Return the roles with the given access right granted