-
Hi, If I use old code:
They have access as they should have. If I use this:
They don't have access. Plugin is visible but it is returning to dashboard page. @Deltik What is correct replacement for outdated permission check? Thanks Next question:
and "P" permission is needed for file admin_config.php So I used
And URL is still available for plugin admin. Any ideas? For now, I will split code to more files, to be able to control this with if (!getperms('0')) Thank |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The replacement for 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. |
Beta Was this translation helpful? Give feedback.
The replacement for
getperms('P')
ise_user_model::checkPluginAdminPerms()
. The method is documented atgetperms()
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.