rule

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package rule contains policy rules

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL