I’m curious to know how people are checking the user roles for UI purposes.
My data is locked down using CLPs and ACLs with a hierarchy of roles. I’ve gone a bit overboard 1.51k roles later…
I know from a database point of view that data will not be loaded / be able to be saved, but how do you guys convey that to the user? There is no point showing an editable view if when they save the form, a permissions error is thrown.
It would be great if when we read an object from the store, a key is added to denote whether the currently logged in user has write access.
Secondly, how do you check when the user doesn’t have read access, are you making the request anyway, and checking that the data returned was null? How does this work when you’ve got sections of your app dedicated to certain users, like admins for example?
Thanks for your help.