Closed newOnahtaN closed 1 month ago
Hi @newOnahtaN , and thanks for your feedback!
Is this the intended behavior of the tool?
I'd say - yes. More restrictive policies should always take precedence - that's the philosophy behind.
As a bit of a context, DFM_ALLOWED_READ_ONLY_APP_ROLES
was added long after DFM_ALLOWED_APP_ROLES
, and the goal was not to introduce any breaking changes.
But I agree, it might appear contra-intuitive. Will clarify the docs.
Interesting. Okay, I will take effort not to assign read only access to anyone who also has write access then.
Done:
Closing this, but please open more issues, if anything else is not right.
Currently in Auth.cs, the following logic exists:
As a result of the final ternary expression in the return statement of this block, if a given user possesses both Read permissions and Normal permissions (Write/Edit permissions?) as I did in my testing, then this function returns
DfmMode.ReadOnly
.Is this the intended behavior of the tool? My assumption based on similar situations in other systems would be that if a user has Write/Edit and Read permissions for a given resource, they would be able to write/edit to that resource without needing to revoke their own read permissions on that resource first.
If it is the intended behavior, then perhaps a callout in the configuration documentation would be appropriate.
Thank you very much for this tool, by the way. Cool as heck 🦾