Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Adding plugin permissions
Domos123
New
How do you add permissions to a plugin? I tried to add an 'Add' permission to the Poll plugin and remove the defunct 'Delete' permission, but unfortunately, there is still a delete checkbox, and no add checkbox.
To clarify, I changed the permission declaration to:'RegisterPermissions' => array('Plugins.Poll.Manage','Plugins.Poll.View','Plugins.Poll.Add'),
It was previously'RegisterPermissions' => array('Plugins.Poll.Manage','Plugins.Poll.View','Plugins.Poll.Delete'),
Tagged:
0
Answers
I had the same issue. Probably you already found out, but you have to disable and enable the plugin for the new permissions to appear. It worked for me.
My shop | About Me