Hello. When I add the first custom Panel user role to a project, the built-in Editor role disappears and any users with the Editor role gets the Nobody role. Is this suppose to happen?
I can create this situation with a clean install of starterkit. After installation, I add a roles folder to site then add a custom role PHP file. When I save the PHP file and refresh the Users Panel page, any user that was an Editor becomes Nobody; and, Editor is no longer available as a role when editing a user.
What version of Kirby are you using?
Ah, sorry. Core/Toolkit/Panel are 2.5.8.
Have you defined the editor user role, then? I think (but am not sure) that once you start defining your own user roles, the standard roles - apart from the admin role - are no longer valid, unless you create a role file for them.
Beat me to it! The first example in the docs is declaring the Editor role, so im guessing the second you add a custom role, they cancel out.
Okay. I was under the impression that Admin and Editor roles were both always available after adding custom roles. I did not see in the docs that adding a custom role takes away the Editor role.
The nobody role was created for security reasons to prevent that a user has more rights than he should have if the role is not defined (starting with Kirby 2.5.6).
Thanks to all for quickly responding to this topic and clarifying.