[wp-trac] [WordPress Trac] #32654: Denying upload_files cap makes Customizer and Media modal act oddly
WordPress Trac
noreply at wordpress.org
Tue Jun 23 18:19:47 UTC 2015
#32654: Denying upload_files cap makes Customizer and Media modal act oddly
--------------------------+--------------------
Reporter: Otto42 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.3
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Comment (by wonderboymusic):
In [changeset:"32913"]:
{{{
#!CommitTicketReference repository="" revision="32913"
The `query-attachments` AJAX action immediately errors out if the user
doesn't have the `upload_files` cap. As such, the Customizer shouldn't
show buttons that launch the media modal when the user doesn't have the
proper permissions to query attachments.
See #32654.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32654#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list