docs icon indicating copy to clipboard operation
docs copied to clipboard

Added section to describe how parts of the UI can be hidden based on user role

Open schiwekM opened this issue 1 year ago • 2 comments

Hi @renejeglinsky,

a few newcomers mentioned the lack of documentation on how parts of the UI can be hidden based on roles. This section should explain it.

@DanSchlachter Maybe it is also something to include in a tutorial or course / SFlight?

Hope the wording is understandable.

BR, Marten

schiwekM avatar May 15 '24 12:05 schiwekM

maybe it should be mentioned, that there is a trade-off between having multiple apps for multiple roles or a single app for multiple roles. You don't want to duplicate the entire app for a small difference in UI -> use small amount of additional logic over creating multiple apps with duplicate code You don't want to have a lot of logic in one app, when it's easier to define two apps -> use two apps over overcomplicating one app

DanSchlachter avatar May 15 '24 13:05 DanSchlachter

I agree but would argue that this should be part of Providing services or Modelling best practices. In general it is quite common that there is one app but create / edit / delete is restricted to an admin user, I'd say.

schiwekM avatar May 15 '24 13:05 schiwekM

Hi Rene,

LGTM - if you need any input from my side let me know. Moreover as an additional follow up might be expressions for annotation on which the compiler team is currently working on.

BR, Marten

schiwekM avatar Jul 10 '24 11:07 schiwekM