Detect effective rights of object

1
Given a domain model with complex xpath access rules can I get the effective rights? I would like to know whether the current user has write access to an object. Otherwise I get an error '... failed for security reasons'
asked
1 answers
2

Yes you can (with a Java action), have a look at http://apidocs.mendix.com/runtime/interfacecom11mendix11systemwideinterfaces11core11imendixobjectmember301t01_4.html#a2263429714312f741cee144f69ad861b

In short, obtain the IMendixObject, then the IMendixObjectMember (Attribute in your Domain model) and ask if you have read access or write access with a certain context.

answered