Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82550

Security constraints when creating an object

$
0
0

I have some issues trying to disallow a module role to create objects.

I want to restrict a role from creating entities of a certain type.

 

Assume the following:

Entity Employee with an enumeration EmployeeType as attribute.

Users with role A should only be allowed to see and edit employees with EmployeeType contractors.

So I added an access rule for role A, with a XPath constraint on "EmployeeType = 'contractors'". This works correctly, role A users can only see the employees with that role.

However when they create a new Employee with a different EmployeeType and save this, they do not receive an error and the employee is saved. I expected that an error would have been shown.

 


Viewing all articles
Browse latest Browse all 82550

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>