21300 Posts in 5735 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 881 Views |
-
Get permissions of current user: "Edit any page"

13 August 2010 at 2:09pm
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();
print_r($member); -
Re: Get permissions of current user: "Edit any page"

13 August 2010 at 2:34pm
I found the answer. This does what I need:
function AuthorizedAuthor () {
return SiteTree::canEdit();
}
| 881 Views | ||
|
Page:
1
|
Go to Top |

