How to check user that create object in mendix

0
My requirement is Only admin and user who create ( Owner ) can change status of object  when retrieve admin i use Choose system → userrole  [System.UserRoles = '[%CurrentUser%]'] [id = '[%UserRole_Administrator%]'] But I didn’t know How to Check current user are the owner ( Whose create the object ) or not ?
asked
1 answers
1

You can accomplish this using Access Rules on the entity in your model.  If your entity is created like this:

 

On the Access Rules tab, you can create these rules:

The rule highlighted in blue indicates that the creator of the object has full access to change the rights.

The second User rule indicates that other users can only read objects they have not created

The Admin rule indicates that Admin can read, write and delete any objects.

 

Hope that helps

answered