Support » Plugin: Media File Renamer - Auto & Manual Rename » Not working for non-admins

  • Resolved teresasumisu

    (@teresasumisu)


    Hi!
    This Plugin is only working for admins, for all other roles only an empty rename-space appears: https://ibb.co/dcSMcbV and writing anything into it doesn’t rename the file. Is this a bug?
    I can’t find any settings for that.
    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter teresasumisu

    (@teresasumisu)

    I would really appreciate an answer 🙂
    BTW, I looked into the logs, but nothing’s in there.
    I enabled “Manual rename” and if not, renaming via the Title works. But this is not what I would want.
    Thanks!

    • This reply was modified 4 months, 2 weeks ago by teresasumisu.
    Gal Baras

    (@galbaras)

    Do you have any plugin (or part of the theme) that changes the built-in roles/capabilities in any way?

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi guys,

    I have been working on roles support for all my plugins, and now they can be overriden. That will only work in the next release

    I just wrote an explanation about it on my website: https://meowapps.com/media-file-renamer-faq-issues/#Access_Control_(Roles).

    Don’t hesitate to contact me directly to try this new version if you are interested 🙂

    Thread Starter teresasumisu

    (@teresasumisu)

    Hi!
    I don’t have any functionality in my theme which does anything to roles.
    I don’t use a Plugin which does.
    I tried your code from the blogpost, but as I understand this is only for the settings dashboard of the plugin. I guess the Dashboard is the one you can access via Navigation > Meow Apps > Renamer? This does not appear anywhere for the editor when adding the code. I tried both of the filter. I also added priority. Not working.
    As for renaming itsef, the problem stays the same.
    The Console shows some errors: https://ibb.co/6XrpP1w
    A list of plugins you can find here: https://ibb.co/7zDhz5m (i tried to deactivate enhanced media library, nested pages, yoast. Not working.

    PS: I just checked, this problem also occurs on another wp installation. Seems like this is no unique problem.

    • This reply was modified 3 months, 3 weeks ago by teresasumisu.
    Plugin Author Jordy Meow

    (@tigroumeow)

    The current version doesn’t support this in fact… sorry 🙁 I will release that version probably today. For the record, that is implemented only from the version 5.1.0. Please wait for it 🙂

    Thread Starter teresasumisu

    (@teresasumisu)

    Hi!
    So I gut your recent update and pasted the following code to my function:

    add_filter( 'mfrh_allow_usage', 'mfrhAllowUsage');
    function mfrhAllowUsage( $allow ) {
      return current_user_can( 'editor' ) || $allow;
    }
    
    add_filter( 'mfrh_allow_setup', 'mfrhAllowSetup');
    function mfrhAllowSetup( $allow ) {
      return current_user_can( 'editor' ) || $allow;
    }

    No Menu-Element for the Renamer Dashboard appears.
    And also in the Media Overview the Renamer disappeared.
    I double checked: Yes, the role the user has is an Editor. And yes, it still works for Admins.

    Thanks!

    Thread Starter teresasumisu

    (@teresasumisu)

    Hi!
    I saw you released another update, but it is still not working.
    Is my code correct? (I added it to my functions.php)
    Your help is really appreciated 🙂
    Thanks a lot!
    Best regards,
    Teresa

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