Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Get permissions of current user: "Edit any page"


2 Posts   1040 Views


13 August 2010 at 2:09pm Community Member, 197 Posts

Under "Permissions" in the CMS there is a checkbox: "Edit any page"

How can I access this in a Controller for the current user?

I see lots of information about the current user here but nothing about permissions:

$member = Member::currentUser();


13 August 2010 at 2:34pm Community Member, 197 Posts

I found the answer. This does what I need:

function AuthorizedAuthor () {
   return SiteTree::canEdit();