-
-
Save hailwood/37c0e24bb4a6bc8bfa33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//... | |
public function canView($member = null) { | |
return Permission::check(array('CMS_ACCESS_CMSMain','RESTfulAPI_VIEW'), 'any', $member); | |
} | |
public function canEdit($member = null) { | |
return Permission::check(array('CMS_ACCESS_CMSMain','RESTfulAPI_EDIT'), 'any', $member); | |
} | |
public function canDelete($member = null) { | |
return Permission::check(array('CMS_ACCESS_CMSMain','RESTfulAPI_DELETE'), 'any', $member); | |
} | |
public function canCreate($member = null) { | |
return Permission::check(array('CMS_ACCESS_CMSMain','RESTfulAPI_CREATE'), 'any', $member); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment