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 ReqCanAdminPlugins ¶
func ReqCanAdminPlugins(cfg *setting.Cfg) func(rc *contextmodel.ReqContext) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.