Replace capability check with “manage_options”
-
Hi there,
I ran into a problem with the plugin, because I am setting the following wordpress constant and manage my plugins with composer:// Disable plugin and theme updates and installation from the admin
Config::define(‘DISALLOW_FILE_MODS’, true);So in settings.php instead this:
function admin_menu() { if (! current_user_can('update_plugins')) return;
Do this:
function admin_menu() { if (! current_user_can('manage_options')) return;
That would be great!
Thanks,
Sascha
- The topic ‘Replace capability check with “manage_options”’ is closed to new replies.