Search This Blog

Thursday, October 25, 2012

Diagnosing of security system permissions has been improved

I think that many of you used our new security system and migth receive the following message in the past: "Saving an object is prohibited by validation rules". Not very descriptive!

Starting with the next maintenance update this message will be more helpful:

<data name="Security_SavingAnObjectWasProhibitedByTheRulesOfVal" xml:space="preserve">
<value>Saving the '{0}' object is prohibited by validation rules.</value>
</data>
<data name="Security_SavingAnObjectWasProhibitedByTheRulesWProp" xml:space="preserve">
<value>Saving the '{0}.{1}' property is prohibited by validation rules.</value>
</data>
<data name="Security_DeletingAnObjectWasProhibitedByTheRules" xml:space="preserve">
<value>Deleting the '{0}' object is prohibited by validation rules.</value>
</data>

In one turn, the XPO code (thanks Slava!) will now pass corresponding object type and property name information available in this context. This will save XAF and XPO developers a lot of time on checking their permissions. Hope you liked this small, but a very important improvement.

No comments:

Post a Comment