LayoutFilePermissions.IsGranted method
Returns true if the file with the permission can be included for the current user. Only public files are included when there is no permission service, and a file with a null or empty permission is never included.
public static bool IsGranted(IPermissionService? permissions, string? permission)
| parameter | description |
|---|---|
| permissions | The permission service |
| permission | The file permission |
See Also
- interface IPermissionService
- class LayoutFilePermissions