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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

Checking if a Group has a Permission Code


Go to End


1559 Views

Avatar
Motoma

Community Member, 7 Posts

19 February 2010 at 7:31am

I am looking for a way to determine if a group has a particular permission code. Something I could use like this:

Permission::CheckGroupPermission($group, 'CMS_ACCESS_ReportAdmin');

Does something like this exists? What would be the easiest way to implement this functionality?