Permissions and “add”-buttons…
Hi,
I’m fiddling with the permissions and wonder if my conclusion is true.
I would like to remove the “Add” button on top of the (clubs) list for the “clubmanager” user(role).
I’ve set up my user-roles (yml).
My default (Kirby) admin user can basically manage everything.
The “Admin” will add the clubs.
Then the clubs are assigned to the users with user-role “clubmanager”.
Now when a clubmanager logs in I want the “Add” club button to be invisible since a clubmanager cannot add clubs this is done already by the “Admin”.
I updated my user(role) blueprint for “clubmanager” saying:
permissions:
access:
settings: false
users: false
pages:
create: false
But this will remove the “Add” button AND all subsequent “Add” buttons in a selected clubs page for editing. We don’t want that because a “clubmanager” should be able to add “Courts”, “Trainers” etc. to the specific “Club”.
I’ve tried to get the “Add” buttons to display for the child pages in a club by adding page specific options for “Courts” and “Trainers” like:
options:
create:
clubmanager: true
But this doesn’t change anything the “Add” button to add “Courts” or “Trainers” to a “Club: do not appear.
So I’ve removed the “pages: create: false” for the “clubmanager” user(role) and the “Add” buttons are visible again for Club(s) and subsequent child pages (“Courts”, “Trainers”) when in editing a club.
Then I added this to the “Club” page (club.yml) to prevent the addition of Clubs by the “Clubmanager”:
options:
create:
clubmanager: false
This obviously works but… I still can see the “Add” button to add a Club (while being logged in as a “clubmanager”) but the ultimate “Save” doesn’t work so that’s fine, I cannot add clubs!
I conclude that it is not possible to hide the “Add” button on top of the “Clubs” list AND show all subsequent “Add” buttons of the clubs child pages (other than with css).
So Is it possible to remove the “Add” button for a specific user role and keep the “Add” buttons on child-pages intact?
Sorry for the long explanation, hope it’s clear.
Thanks in advance.

