Skip to content

Troubles with plugin permissions #5352

Answered by Deltik
Jimmi08 asked this question in Q&A Core
Discussion options

You must be logged in to vote

The replacement for getperms('P') is e_user_model::checkPluginAdminPerms(). The method is documented at getperms() and at the new method.

The new method doesn't assume the plugin path, so it's not affected by the file path where the permission check is used. This should also address your second concern.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jimmi08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants