ds-roles
ds-roles copied to clipboard
role toggling
Consider the ability to toggle a role's authentication across all of its functions.
Then could have e.g. 0
as the special 'public' role, instead of public_capabilities
I'm still not getting the advantage of it. We would still need to add to this special role each function we would want to be accessible by it. Wouldn't be the same?
Yes, you still have to do that initially. But then toggling the role's access is a single call operation.
We could still have a flag to enable/disable the public_capabilities
, but it is true this would be more generic and would allow to toggle any role.