[wp-trac] [WordPress Trac] #31183: Users with "update_plugins" capability can not see update details
WordPress Trac
noreply at wordpress.org
Wed Feb 4 13:40:49 UTC 2015
#31183: Users with "update_plugins" capability can not see update details
---------------------------------+-----------------------------
Reporter: michel.weimerskirch | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Plugins | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: administration
---------------------------------+-----------------------------
Comment (by prasoon2211):
@SergeyBiryukov: Well, I didn't know about custom roles so thanks for
letting me know :)
Anyway, while I was investigating this issue, I thought of removing the
{{{install_plugins}}} capability from an {{{administrator}}} for testing.
So, I used {{{remove_cap}}} on the admin user. But, the capability didn't
get removed. So, I opened up a debugger to see what was happening inside
the {{{remove_cap}}} method and there seems to be a problem in it. See
this debugging screenshot: [[Image(http://picpaste.com/pics/remove_cap-
ubXz63Nz.1423056638.png)]]
On the left pane is the {{{remove_cap}}} function which checks for the
{{{capability}}} to remove under the {{{$this->caps}}} variable when it
should (I think) check in {{{$this->allcaps}}} (see local vars in the
right pane).
Should I file a bug for this or is this expected behaviour? Also, if this
is expected behaviour, how would I go about removing a capability from a
user (since remove_cap doesn't seem to be working in this case)?
Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31183#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list