• Resolved Frederic

    (@desclosf)


    Hello,

    I’m facing a strange issue. I created a new role called Sitemanager which is a copy of Administrator role.

    When a user is site manager, no image show up. When I downgrade the user to editor, it works perfectly… Is there something special with roles and capabilities that makes a new role not being able to see medias ?

    Thanks
    F.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nothing special with roles and capabilities that makes a new role not being able to see media, noting the below screenshots in the following environment:
    – WordPress 5.9
    – Media Library Organizer 1.3.9
    – Members 3.1.7

    Sitemanager role created by cloning Administrator role:

    View post on imgur.com

    View post on imgur.com

    Media Library when logged in as a User assigned to Sitemanager role:

    View post on imgur.com

    Media Library when inserting an image into a Page as a User assigned to Sitemanager role, with a Category selected:

    View post on imgur.com

    You’re welcome to carefully debug your environment, in particular:
    – Enabling debug.log, noting errors: https://wordpress.org/support/article/debugging-in-wordpress/
    – Triple checking that your role truly matches the capabilities of an Administrator
    – Deactivation of third party Plugins to produce a minimal environment where the issue is either reproducible or resolved

    Thread Starter Frederic

    (@desclosf)

    Hi,

    Indeed, I found out the issue, which is not linked to the plugin. It appears that using the following in functions.php of the child theme prevent the access to medias in general (still don’t know why 🙁 )

    add_action(‘admin_init’, ‘my_function’);

    Anyway, thanks for your help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Role & capabilities’ is closed to new replies.