Skip to content

LocalTextPermissionModel.IsAllowed method

Returns true if a user with the granted permissions may see the key. A key is allowed when it starts with an always included prefix, or when it has a grant the user has. Otherwise its restriction decides if it has one, or else the longest gate prefix it starts with, and it is allowed when neither exists.

public bool IsAllowed(string key, bool[] granted)
parameter description
key Local text key
granted Whether the user has each permission in Permissions

See Also