[wp-trac] [WordPress Trac] #27670: Plugin Information tab - inaccesible without install_plugin capability
WordPress Trac
noreply at wordpress.org
Fri Apr 4 14:01:04 UTC 2014
#27670: Plugin Information tab - inaccesible without install_plugin capability
-----------------------------+-----------------------------
Reporter: FolioVision | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 3.8.1
Severity: normal | Keywords:
Focuses: administration |
-----------------------------+-----------------------------
Hello,
if I understand it correctly through the '''Plugin information tab''' you
can also install/update plugins. But if you permit installing plugins with
f.e. with add_cap("install_plugins", FALSE) to some user, whole '''Plugin
information tab''' is '''unusable''' for him, so you cant view details,
install update even if you are allowed to.
I suppose the problem is in wp-admin/plugin-install.php where is
{{{
if ( ! current_user_can('install_plugins') )
wp_die(__('You do not have sufficient permissions to install
plugins on this site.'));
}}}
so maybe extending the condition above to something like this
{{{
if (( ! current_user_can('install_plugins') ) &&
plugin_not_installed($plugin_name))
}}}
could help?
Thanks
Jozef Repáň
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27670>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list