expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategy-5966442f.md
Specifies whether or not the navigation permissions are supported for types.
Namespace : DevExpress.ExpressApp.Security
Assembly : DevExpress.ExpressApp.Security.v25.2.dll
NuGet Package : DevExpress.ExpressApp.Security
[DefaultValue(true)]
public bool SupportNavigationPermissionsForTypes { get; set; }
<DefaultValue(True)>
Public Property SupportNavigationPermissionsForTypes As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true, if the navigation permissions are supported for types, otherwise false.
|
To provide support for navigation permissions determined in the Type Permissions tab, set the SupportNavigationPermissionsForTypes property to true. This property switches between the two modes described in the table below:
| Property value | Mode description |
|---|---|
true | This mode is used in applications created in version 16.1 or earlier and updated to 16.2 or later. Navigation permissions from the Type Permissions tab have effect, but its priority is less than the settings in the Navigation Permissions tab. Access to the navigation items will not be changed while you don’t specify any settings in the Navigation Permissions tab. In this mode, non-persistent navigation items are always available if access is not denied in the Navigation Permissions tab. |
false | This mode is used in applications created in versions 16.2 and later. Navigation permissions from the Type Permissions tab have no effect and only new settings from the Navigation Permissions tab will be used. If permissions are not determined, access will be allowed or denied consistent with the role’s policy. In this mode, non-persistent navigation items are available if access is not denied in the Navigation Permissions or not disabled in the role’s policy. |
The following code snippets (auto-collected from DevExpress Examples) contain references to the SupportNavigationPermissionsForTypes property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
XAF_How-to-get-role-code-from-the-UI/CS/XafSolution.Web/WebApplication.cs#L100
this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
this.securityStrategyComplex1.SupportNavigationPermissionsForTypes = false;
this.authenticationStandard1 = new DevExpress.ExpressApp.Security.AuthenticationStandard();
this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
this.securityStrategyComplex1.SupportNavigationPermissionsForTypes = false;
this.authenticationStandard1 = new DevExpress.ExpressApp.Security.AuthenticationStandard();
this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
this.securityStrategyComplex1.SupportNavigationPermissionsForTypes = false;
this.authenticationStandard1 = new DevExpress.ExpressApp.Security.AuthenticationStandard();
XAF_How-to-get-role-code-from-the-UI/VB/XafSolution.Web/WebApplication.vb#L96
Me.securityStrategyComplex1 = New DevExpress.ExpressApp.Security.SecurityStrategyComplex()
Me.securityStrategyComplex1.SupportNavigationPermissionsForTypes = False
Me.authenticationStandard1 = New DevExpress.ExpressApp.Security.AuthenticationStandard()
See Also