getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 222 forks source link

ISSUE/BUG: Accounts without “SUPER USER” cannot duplicate pages #2413

Open Fuficek opened 1 month ago

Fuficek commented 1 month ago

Hello, I’ve already submitted this issue to discord, and Grav Forum.

Issue description: When I set the role “Super User” to Unset or Denied (because I don’t want my regular page editors to access configs and such. The sub-menu when clicking 3 dots on any page or module in pages disappears (see images), therefore, accounts that are just going to be used to modify and create pages, cannot easily duplicate others. All other permissions have been allowed. Just not SUPER USER. I’m unsure if this is supposed to happen, but is seems like a bug and not a feature to me. image image image

Steps to recreate issue:

  1. Create a new account
  2. Give the account all permissions and set only ‘super user’ to Not set/Denied
  3. Login into the new account’s admin panel.
  4. The option is no longer available.

Versions:

I’d like help as soon as possible please. This issue has been bothering be for a while and I’ve tried to resolve it in discord with my submissions being ignored (Ricardo replied once.) I’m not blaming anyone I’m just desperate for help. Any suggestions???.. Thank you <3

If anything contact me on discord or Grav Forums

chraebsli commented 1 month ago

Duplicate of #2408

rhukster commented 1 month ago

I'm not able to recreate this issue. I have testd with an 'author' user that simply has these permissions:

  access:
    admin:
      login: true
      pages:
        list: true
        create: true
        update: true
        read: true

They are able to see the copy button in both the listing page and the details page:

CleanShot 2024-05-27 at 14 17 03@2x

CleanShot 2024-05-27 at 14 17 22@2x

CleanShot 2024-05-27 at 14 17 55@2x

What does the actual account .yaml file look like? (user/accounts/username.yaml)

What plugins do you have installed?

Fuficek commented 1 month ago

The account permissions:

access:
  site:
    login: true
  admin:
    login: true
    cache: true
    configuration: true
    pages: true
    maintenance: true
    statistics: true
    plugins: true
    themes: true
    tools: true
    users: true
    flex-objects: true

My installed plugins: image (Webp plugins are disabled)

I've tried a fresh installation and the issue persists.

pamtbaau commented 1 month ago

Shall we close the original issue https://github.com/getgrav/grav-plugin-admin/issues/2408 or this duplicate and continue in one issue?

chraebsli commented 1 month ago

Shall we close the original issue #2408 or this duplicate and continue in one issue?

I like the idea.

pamtbaau commented 1 month ago

I've added a reproducible script on in the original issue: https://github.com/getgrav/grav-plugin-admin/issues/2408#issuecomment-2133917313