Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HasRightsToModifyMemberController Class

A ViewController descendant that makes Property Editors read-only or editable, dependent on the current user’s permissions.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.Security.v24.2.dll

#Declaration

public class HasRightsToModifyMemberController :
    ObjectViewController

#Remarks

The HasRightsToModifyMemberController Controller is provided by the SecuritySystem module. It is activated for Detail Views. This Controller makes Property Editors read-only when the current user has no permission to modify the object displayed in the current Detail View. When a Property Editor represents a reference property, the Controller sets this editor as read-only, if the user has no permission to modify the referenced object.

By default, Property Editors states (PropertyEditor.AllowEdit properties) are updated when:

  • the HasRightsToModifyMemberController Controller is activated;
  • the object displayed in a current Detail View is changed (see View.CurrentObjectChanged);
  • an item is added to, or removed from the current Detail View.

If it is required to enforce the update, invoke the HasRightsToModifyMemberController.UpdatePropertyEditors method exposed by the HasRightsToModifyMemberController class.

#Implements

See Also