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
Click to show internal directories.
Click to hide internal directories.