pluginaccesscontrol

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Plugins actions
	ActionInstall = "plugins:install"
	ActionWrite   = "plugins:write"

	// App Plugins actions
	ActionAppAccess = "plugins.app:access"
)

Variables

View Source
var (
	ScopeProvider = ac.NewScopeProvider("plugins")
	// Protects access to the Configuration > Plugins page
	AdminAccessEvaluator = ac.EvalAny(ac.EvalPermission(ActionWrite), ac.EvalPermission(ActionInstall))
)

Functions

func DeclareRBACRoles

func DeclareRBACRoles(service ac.Service, cfg *setting.Cfg, features featuremgmt.FeatureToggles) error

func GetDataSourceRouteEvaluator

func GetDataSourceRouteEvaluator(dsUID, action string) ac.Evaluator

GetDataSourceRouteEvaluator returns an evaluator for the given data source UID and action.

func GetPluginRouteEvaluator

func GetPluginRouteEvaluator(pluginID, action string) ac.Evaluator

GetPluginRouteEvaluator returns an evaluator for the given plugin ID and action.

func ReqCanAdminPlugins

func ReqCanAdminPlugins(cfg *setting.Cfg) func(rc *contextmodel.ReqContext) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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