PropertyItemsScriptOptions class
namespace: Serenity.Web assembly: Serenity.Net.Web
Options for form and columns scripts permissions.
public class PropertyItemsScriptOptions
Public Members
| name | description |
|---|---|
| PropertyItemsScriptOptions() | The default constructor. |
| FallbackPermission { get; set; } | Permission used for form and columns scripts without a BasedOnRow attribute, when PublicByDefault is false. Defaults to Deny. It does not apply to scripts based on a row without a ReadPermission, which are always denied. |
| PublicByDefault { get; set; } | When true (default), form and columns scripts without an explicit Permission in their attribute are public, as in previous versions. When false, they require the ReadPermission of the row type in their BasedOnRow attribute (DENY if the row has none, like lookup scripts), or the FallbackPermission if they have no BasedOnRow attribute. An explicit Permission in FormScript / ColumnsScript attribute is always used. |
| GetPermissionFor(…) | Determines the permission for a form or columns type. |
| const SectionKey | Default section key for these options |
See Also
- Source: PropertyItemsScriptOptions.cs