EditableForAttribute Class

EditableForAttribute Class

Sets the user groups that are allowed to edit this property in the back office. For any user that is not part of at least one of the provided user groups this property will be read-only.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class EditableForAttribute: Attribute, IPropertyModelAttribute

Inheritance  Attribute EditableForAttribute

Implements  IPropertyModelAttribute

Constructors

Name Description
EditableForAttribute(string[]) Default constructor.

Properties

Name Description
UserGroups The list of user group names that are allowed to edit this property.

Methods

Name Description
Apply(PropertyDefinition)