wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.64k stars 1.1k forks source link

Images get uploaded even when no upload_files capability #4427

Open bagia opened 8 years ago

bagia commented 8 years ago

When in the “Contributor” role, the capability upload_files is set to 0.

Problem: In the editor, we’re still able to pick images, and we get told the the upload failed. This is annoying in two ways:

Proposed fix:

bummytime commented 7 years ago

UPDATE: still an UX issue for sure. This is slightly complicated by the fact that searching the upload_files flag in blog capabilities is not always possible. e.g. Self-hosted, non-Jetpack blogs will have blog.capabilities == nil

When a contributor user attempts a media upload it will will fail correctly, however the user will see errors such as:

napkin 36 02-13-17 11 54 16 am

which still can be very confusing.