grav-plugin-admin icon indicating copy to clipboard operation
grav-plugin-admin copied to clipboard

Menu Modal Toolbar not showing without admin.super permission

Open chraebsli opened this issue 1 year ago • 9 comments

I found an issue regarding the toolbar in the menu modal in pages, which is only showing when the user has admin.super permission.

Currently, I only get this modal without the toolbar with let’s say user1: Menu Modal without Toolbar

But with my admin user, I get this modal, with the toolbar: Menu Modal with Toolbar

I tested this with a fresh Grav + Admin installation without any configuration.


Accounts

Here are my account configs (access only)

admin

access:
  site:
    login: true
  admin:
    login: true
    super: true

user1

access:
  admin:
    login: true
    configuration:
      pages: true
    pages: true

chraebsli avatar Apr 23 '24 13:04 chraebsli

I've recently stumbled upon this issue myself and is really annoying. I hope it'll get fixed soon. Seems simple to fix.

Fuficek avatar May 27 '24 11:05 Fuficek

Seems simple to fix.

You're free to open a PR with the fix;)

chraebsli avatar May 27 '24 12:05 chraebsli

Scratch my comments, had the wrong issue up when responding!

rhukster avatar May 27 '24 13:05 rhukster

What plugins do you have installed?

What account privs do you have? can you paste a copy of the user's account yaml file? (user/accounts/username.yaml).

I think you might have a plugin installed that is causing a conflict as i can't recreate this.

rhukster avatar May 27 '24 13:05 rhukster

Seems simple to fix.

You're free to open a PR with the fix;)

I'd like to but I'm not that good at PHP :(

Fuficek avatar May 27 '24 18:05 Fuficek

@rhukster,

  • Download Grav + Admin.
  • Surf to site and create a user to login. Access rights will be:
    access:
      admin:
        login: true
        super: true
      site:
        login: true
    
  • Edit current user:
    • Pages: 'Allow'
    • Super user: 'Unset' New access rights:
      access:
        admin:
          login: true
          pages: true
        site:
          login: true
      
  • Logoff
  • Sometimes needed to run $ bin/grav cache
  • Login
  • Go to pages
  • Click on menu of Typography => Menu options have disappeared

pamtbaau avatar May 27 '24 18:05 pamtbaau

Seems simple to fix.

You're free to open a PR with the fix;)

I'd like to but I'm not that good at PHP :(

Same here. If I'd found the file with the modal, I'd try, but haven't found it somehow.

chraebsli avatar May 28 '24 06:05 chraebsli