• Resolved sianalcock21

    (@sianalcock21)


    Hey there – great plugin! I have a client that would like to limit use of the plugin to admins only. Is that possible (eg in a hook)? I’m thinking not as I’ve searched the documentation… but just in case I missed it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for the positive feedback and for your interesting question.

    MLA is designed to be as “WordPress-like” as possible, and it uses the WP roles and responsibilities to implement permissions and restrictions along the same lines. For example, there are current_user_can() checks for reading and editing posts, assigning taxonomy terms, uploading files, managing options, etc. More specifically, a user must be able to upload_files in order to see the Media/Assistant admin screen. This is the same filter applied to the WordPress Media/Library admin screen. You can search the MLA code for calls to current_user_can to see all the current checks.

    What users have access to is determined by their WordPress “role’. Subscribers and Contributors do not see any MLA admin features. Authors can access the Media/Assistant screen but cannot edit items or taxonomy terms and cannot access the Settings screen. Editors can, of course, edit things but cannot access the Settings screen.

    MLA does not have any hooks of its own to further restrict access to its features. I would be happy to consider adding something along these lines if you can give me details about which MLA features should be limited.

    I will leave this topic unresolved for now. Any additional information you can provide is welcome. Thanks for your interest in the plugin.

    Plugin Author David Lingren

    (@dglingren)

    It has been over a month since the last post in this topic. I assume you have found a solution that works for your application.

    I am marking this topic resolved, but please update it if you are still having trouble with admin access roles and responsibilities.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restrict use of Media Library Assistant to admins’ is closed to new replies.