silverstripe-terraformers / silverstripe-embargo-expiry

BSD 3-Clause "New" or "Revised" License
7 stars 7 forks source link

Allow Fallback to SiteTree Permissions #35

Closed caffeineinc closed 6 years ago

caffeineinc commented 6 years ago

If your site has a SiteTree extension extending canEdit and returning true then the default SiteTree Permissions are never called, and the user is always granted permission.

Instead, return null, or "Don't affect the outcome" and rely on SiteTree or Inherited permissions

@see https://github.com/silverstripe-terraformers/silverstripe-embargo-expiry/issues/34

Resolves #34