• Resolved markgilmore

    (@markgilmore)


    Under the File Manager section and the File(URL) field it says, “You don’t have permission to edit files”

    I’m logged in with an admin account.

    The changelog says “add edit_files permission check.” I’m wondering if that’s the cause of the problem.

    Thank you for your help!

    Best regards,

    Mark

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Lana Codes

    (@lanacodes)

    Yes, due to the new security settings, we had to change the plugin so that only administrators can edit the files.

    In the next version, there will be a permission editor in the settings. I would like to ask for your patience for a few days while we upload the new version.

    Thread Starter markgilmore

    (@markgilmore)

    Thank you so much for your quick response and the new version soon to come!

    In the interim, is there someplace I can download the previous version?

    Plugin Author Lana Codes

    (@lanacodes)

    You could download it, but since there are security patches in this version, it is not recommended to download the previous version.

    We have uploaded version 1.7.0, which has the option of role edit files in Settings.

    Thread Starter markgilmore

    (@markgilmore)

    Thank you. I just now updated to revision 1.7.0. I’m logged in as admin. It still says I don’t have permission to edit files in the File Manager section.

    What am I missing?

    Plugin Author Lana Codes

    (@lanacodes)

    First, you need to log in as an administrator and go to the “Settings”.

    There you will see a field in the “General” section called “Role Edit Files”. If you want to give permissions to “Editor” role users, check and then save the setting.

    “Administrator” role always has permission to change settings and edit files.

    If you have any questions or need help, feel free to contact me.

    Thread Starter markgilmore

    (@markgilmore)

    I understand. Again, I am logged in as an administrator. There’s no need to add any other roles for my purposes. Still the problem persists. I still can’t add a URL to the File Manager section. I hope this makes sense.

    Thread Starter markgilmore

    (@markgilmore)

    Did a bit of detective work. I disabled all plugins, except for Lana Downloads Manager, and the problem persisted.

    Plugin Author Lana Codes

    (@lanacodes)

    Are you absolutely sure you are logged in as an administrator?

    In the settings, do you see that “Administrator” is checked and disabled?

    Two capabilities define edit file permission: “edit_files” or “edit_lana_download_files” capability. The administrator role has the “edit_files” capability by default.

    Plugin Author Lana Codes

    (@lanacodes)

    One more question: is this a multisite?

    Thread Starter markgilmore

    (@markgilmore)

    Yes, I am quite sure that I’m logged in as an administrator. Yes, I understand that admin accounts have “edit_files” by default. Time to do some more homework about what changed from previous versions, in my humble opinion. I can edit everything else logged in as admin on my sites. We’re at the latest version of WordPress with the latest version of MH Themes Magazine on over two dozen sites. They all have this issue.

    Thread Starter markgilmore

    (@markgilmore)

    It is not multi-site.

    Plugin Author Lana Codes

    (@lanacodes)

    The Query Monitor plugin has a Capability Checks module that can help: https://www.ads-software.com/plugins/query-monitor/

    For example, if you give the Author role permission to edit files, does an author user have permission, and can edit files in lana download?

    I believe that you have a problem with this, but I also tried it on two different websites (both localhost and public website) and it works on both.

    And even if the administrator doesn’t have “edit_files” permission for some reason, according to the settings, the administrator should have “edit_lana_download_files” capability. That’s why it’s so weird.

    Plugin Author Lana Codes

    (@lanacodes)

    I made some screenshots to show how it works in my website: https://imgur.com/a/aPFWn7R

    Thread Starter markgilmore

    (@markgilmore)

    Sorry my time is limited this morning.

    So, I took your advice and learned that if I log in with an editor account, all is well. Of course I have the editor role enabled. Admin is still limited. Weird…

    Plugin Author Lana Codes

    (@lanacodes)

    Hmmm, then there might be a problem with the “administrator” role capability, which is really wierd because it has both capabilities and it has to be “OR”, so one would be enough.

    Unfortunately, it is very difficult to tell from a distance. Query Monitor can help with the analysis.

    I’ll try to write an analysis addon plugin so maybe we can see what’s causing the problem.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘1.6.0 update says “You don’t have permission to edit files”’ is closed to new replies.