Grant or delete page access using CheckBox Enum/Boolean

0
How can I use checkbox enum/boolean to display each department as a checkbox and make the page accessible for checked departments and inaccessible to the page when unchecked? Also, I would like to know if this function can be implemented with mendix.   * To be precise, when creating an account, the department is specified using an enum, and this is a function that modifies read and write permissions for each department on the page.
asked
1 answers
1

Depending on the exact requirements, you can have several solutions and the exact details might be a bit different.

 

You probably need to look into entity access on the domain model and more specifically at the access rules to the user

If you have a structure like this

image.png

You could restrict access for users for instance based on the association between the account and the department. Eg setting up access on Department based on an xpath

[Module.Person_Department/Module.Person/Module.Person_Account='[%CurrentUser%]']

 

If you want to flag certain departments, you can either base the acces only on this boolean

image.png

And of course you can use a combination of the two.

answered