sylvainjule / kirby-backups

Manage backups from the Kirby panel
MIT License
37 stars 2 forks source link

Enhancement suggestion: Hide or disable the backup item in the main menu for certain roles #2

Closed vauvarin closed 4 years ago

vauvarin commented 4 years ago

It would be great to be able to hide or disable the backup item in the main menu for certain roles.

sylvainjule commented 4 years ago

I just tested it and it actually works out of the box with permissions 🎉

# site/blueprints/users/*.yml
permissions:
  access:
    backups: false

Will disable the button.

By default, disabled dropdown items are faded. If you need to hide them completely:

.k-topbar-menu .k-dropdown-item[data-disabled] {
    display: none;
}