permissions

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionsFilter

type PermissionsFilter interface {
	LeftJoin() string
	With() (string, []any)
	Where() (string, []any)
	// contains filtered or unexported methods
}

func NewAccessControlDashboardPermissionFilter

func NewAccessControlDashboardPermissionFilter(user identity.Requester, permissionLevel dashboardaccess.PermissionType, queryType string, features featuremgmt.FeatureToggles, recursiveQueriesAreSupported bool) PermissionsFilter

NewAccessControlDashboardPermissionFilter creates a new AccessControlDashboardPermissionFilter that is configured with specific actions calculated based on the dashboardaccess.PermissionType and query type The filter is configured to use the new permissions filter (without subqueries) if the feature flag is enabled The filter is configured to use the old permissions filter (with subqueries) if the feature flag is disabled

Jump to

Keyboard shortcuts

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