permissions

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 10 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, []interface{})
	Where() (string, []interface{})
	// contains filtered or unexported methods
}

func NewAccessControlDashboardPermissionFilter

func NewAccessControlDashboardPermissionFilter(user *user.SignedInUser, permissionLevel dashboards.PermissionType, queryType string, features featuremgmt.FeatureToggles, recursiveQueriesAreSupported bool) PermissionsFilter

NewAccessControlDashboardPermissionFilter creates a new AccessControlDashboardPermissionFilter that is configured with specific actions calculated based on the dashboards.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