LocalTextPermissionModel constructor
Which permissions local text keys require, as determined once by LocalTextPermissionFilter. Permissions are referred to by their index in Permissions, so that the access of a user can be represented as a boolean per permission.
public LocalTextPermissionModel(string[] permissions, Dictionary<string, int[]> gates,
Dictionary<string, int[]> grants, Dictionary<string, int[]> restrictions,
string[] alwaysInclude)
| parameter | description |
|---|---|
| permissions | Distinct permissions referred to by gates, grants and restrictions |
| gates | Key prefixes (ending with a dot) and the permissions any of which allows the keys starting with them |
| grants | Exact keys and the permissions any of which allows them, regardless of restrictions and gates, e.g. the texts used by forms and columns |
| restrictions | Exact keys and the permissions any of which allows them, which decides for the key instead of the gates, e.g. the texts of a nested local texts class with a permission |
| alwaysInclude | Key prefixes that are always allowed |
See Also
- class LocalTextPermissionModel