Documentation ¶
Overview ¶
Package rule contains policy rules
Index ¶
- func CanCreateGroupsInOrg() privacy.GroupMutationRuleFunc
- func DenyIfNoSubject() privacy.QueryMutationRule
- func HasGroupMutationAccess() privacy.GroupMutationRuleFunc
- func HasGroupReadAccess() privacy.GroupQueryRuleFunc
- func HasOrgMutationAccess() privacy.OrganizationMutationRuleFunc
- func HasOrgReadAccess() privacy.OrganizationQueryRuleFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanCreateGroupsInOrg ¶
func CanCreateGroupsInOrg() privacy.GroupMutationRuleFunc
CanCreateGroupsInOrg is a rule that returns allow decision if user has edit access in the organization
func DenyIfNoSubject ¶
func DenyIfNoSubject() privacy.QueryMutationRule
DenyIfNoSubject is a rule that returns deny decision if the subject is missing in the context.
func HasGroupMutationAccess ¶
func HasGroupMutationAccess() privacy.GroupMutationRuleFunc
HasGroupMutationAccess is a rule that returns allow decision if user has edit or delete access
func HasGroupReadAccess ¶
func HasGroupReadAccess() privacy.GroupQueryRuleFunc
HasGroupReadAccess is a rule that returns allow decision if user has view access
func HasOrgMutationAccess ¶
func HasOrgMutationAccess() privacy.OrganizationMutationRuleFunc
HasOrgMutationAccess is a rule that returns allow decision if user has edit or delete access
func HasOrgReadAccess ¶
func HasOrgReadAccess() privacy.OrganizationQueryRuleFunc
HasOrgReadAccess is a rule that returns allow decision if user has view access
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.