.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SecurityStrategy.IsGranted Method

Name Parameters Description
IsGranted(IPermissionRequest) permissionRequest Checks whether the specified operation is allowed.
IsGranted(IPermissionRequest, IPermissionPolicyRole) permissionRequest, targetRole Checks whether the specified role allows a user to make an operation.
IsGranted(IPermissionRequest, IPermissionPolicyUser) permissionRequest, targetUser Checks whether the specified operation is allowed for the target user.
IsGranted(IList<IPermissionRequest>) permissionRequests Checks whether the specified operations are allowed.