Jump to content

How to add a new Permission?


neildaemond
 Share

Recommended Posts

I feel like the list of permissions in the Access>Permissions section isn't exhaustive. There is an 'Add Permission' option, but I don't have a clue as to what I can add in there as it's just a text field.

Is there a list of acceptable permissions somewhere? or a guide on how to use this feature?

Thanks,

Link to comment
Share on other sites

Permissions are text based. While there's some already there used by system, you can simply add custom permission you then can use for your module or in templates:

$user->hasPermission("mypermission")
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...