LayoutFilePermissions class
namespace: Serenity.Web assembly: Serenity.Net.Web
Helpers for the permissions of LayoutScriptFileAttribute and LayoutCssFileAttribute. As elsewhere, a null or empty permission is invalid and denies access, it does not mean public.
public static class LayoutFilePermissions
Public Members
| name | description |
|---|---|
| static ByPath(…) | Builds a dictionary of the permission of each file path. When a path is declared more than once, it is public if any of the declarations is public, otherwise the permissions are combined with "|". Null or empty permissions are kept as "DENY". |
| static IsGranted(…) | 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. |
| static IsPublic(…) | Returns true if the file permission is public ("*"), e.g. the file is included for everyone, including anonymous users. |
See Also
- Source: LayoutFilePermissions.cs