Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Franz Josef Kaiser committed Oct 12, 2015
2 parents 71e69b9 + bfd7558 commit b46a4be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Views/UploadView.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ public function setup()
is_admin()
&& (
! current_user_can( 'upload_files' )
or ( ! IS_PROFILE_PAGE && ! current_user_can( 'edit_users' ) )
or (
( defined( 'IS_PROFILE_PAGE' ) && ! IS_PROFILE_PAGE )
&& ! current_user_can( 'edit_users' )
)
or ! in_array( get_current_screen()->base, [
'profile',
'user-edit',
Expand Down

0 comments on commit b46a4be

Please sign in to comment.