Support » Plugin: WP Job Manager » Media Library Images Hidden from Admin

  • Resolved jmessy919

    (@jmessy919)


    Hello,

    I’ve noticed that the media/images uploaded by other users are not accessible by site Admins in the media library, even if the uploader was another admin. Obviously, we want regular users not to have access to all site media, but Admins should have complete control. Without having this issue resolved, it forces admins to upload multiple copies of image files if page elements are modified, consuming way more storage than is necessary.

    Any way we can get this resolved? Have I missed a setting somewhere?

    Thanks,

    Jesse

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jen H.

    (@jenhooks)

    Hi @jmessy919,

    Are you using any kind of User Role Editor plugin? Or have you modified permissions in any way? For example, is there anything in functions.php that looks like the snippet in this documentation?

    https://codex.wordpress.org/Plugin_API/Filter_Reference/ajax_query_attachments_args#Examples

    jmessy919

    (@jmessy919)

    Hi @jenhooks – thank you for your response.

    I am using User Role Editor Pro for custom user roles. But even other site Admins (not a custom role) cannot access my media nor can I access theirs.

    I did find this line in one of the core plugins from the theme we use:

    add_filter( 'ajax_query_attachments_args', array( $this, 'restrict_media_library' ) );

    However, this only looks like it restricts non-admin users from accessing the media library entirely. The problem still occurs for admins though, oddly enough.

    What do you think?

    Jesse

    • This reply was modified 3 months ago by  jmessy919. Reason: Added some code I found
    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi Jesse!

    I’m not sure what’s going on here, but it does sound like the problem lies with WPJM. In my tests, other admins are able to access the uploaded images. So, the problem is definitely elsewhere in your site; either with the user roles, or in a different plugin, or something. The best way for you to figure it out is for you to create a staging version of the site, then turn off your plugins one by one until you find the culprit.

    Hi Richard,

    Thanks for your reply.

    I will try what you mentioned and see if it is plugin or theme related, as the theme developer directed me to you.

    Thanks,

    Jesse

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.