Documentation ¶
Index ¶
- func AuthorizeInOrgMiddleware(ac accesscontrol.AccessControl, db sqlstore.Store) func(web.Handler, OrgIDGetter, accesscontrol.Evaluator) web.Handler
- func Deny(c *models.ReqContext, evaluator accesscontrol.Evaluator, err error)
- func Disable(shouldDisable bool) web.Handler
- func LoadPermissionsMiddleware(ac accesscontrol.AccessControl) web.Handler
- func Middleware(ac accesscontrol.AccessControl) func(web.Handler, accesscontrol.Evaluator) web.Handler
- func UseGlobalOrg(c *models.ReqContext) (int64, error)
- func UseOrgFromContextParams(c *models.ReqContext) (int64, error)
- type OrgIDGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeInOrgMiddleware ¶
func AuthorizeInOrgMiddleware(ac accesscontrol.AccessControl, db sqlstore.Store) func(web.Handler, OrgIDGetter, accesscontrol.Evaluator) web.Handler
func Deny ¶
func Deny(c *models.ReqContext, evaluator accesscontrol.Evaluator, err error)
func LoadPermissionsMiddleware ¶
func LoadPermissionsMiddleware(ac accesscontrol.AccessControl) web.Handler
func Middleware ¶
func Middleware(ac accesscontrol.AccessControl) func(web.Handler, accesscontrol.Evaluator) web.Handler
func UseGlobalOrg ¶
func UseGlobalOrg(c *models.ReqContext) (int64, error)
func UseOrgFromContextParams ¶
func UseOrgFromContextParams(c *models.ReqContext) (int64, error)
Types ¶
type OrgIDGetter ¶
type OrgIDGetter func(c *models.ReqContext) (int64, error)
Click to show internal directories.
Click to hide internal directories.