Tab
A newer version of this page is available. Switch to the current version.

Rights Enum

Lists values that control the action permissions within access rules.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public enum Rights
Public Enum Rights

Members

Name Description
Allow

The action is allowed within the access rule.

Deny

The action is denied within the access rule.

Default

The action has an identical permission as the current item (file or folder) parent element. It corresponds to the Rights.Allow permission if this value does not exist.

Remarks

The values listed by this enumeration are used to set the FileManagerAccessRuleBase.Browse, FileManagerAccessRuleBase.Edit, FileManagerFolderAccessRule.EditContents, FileManagerFileAccessRule.Download, and FileManagerFolderAccessRule.Upload property values.

Examples

<dx:ASPxFileManager ID="FileManager" runat="server" ...>

...

     <SettingsPermissions>
          <AccessRules>
               <dx:FileManagerFolderAccessRule Path="" Edit="Deny" />
               <dx:FileManagerFileAccessRule Path="*.xml" Edit="Deny" />
               <dx:FileManagerFolderAccessRule Path="System" Browse="Deny" />

               <dx:FileManagerFolderAccessRule Path="Documents" Role="DocumentManager" EditContents="Allow" />

               <dx:FileManagerFolderAccessRule Path="Music" Role="MediaModerator" EditContents="Allow" />
               <dx:FileManagerFolderAccessRule Path="Video" Role="MediaModerator" EditContents="Allow" />
               <dx:FileManagerFolderAccessRule Path="" Role="MediaModerator" Upload="Deny" />

               <dx:FileManagerFolderAccessRule Role="Administrator" Edit="Allow" Browse="Allow" />
          </AccessRules>
     </SettingsPermissions>
</dx:ASPxFileManager>
See Also