AccessControl: Extend scope parameters with extra params from context (#39722)
* AccessControl: Extend scope parameters with extra params from context Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
This commit is contained in:
co-authored by
Emil Tullstedt
parent
d1b2b10e6a
commit
458371c8eb
@@ -140,6 +140,12 @@ func (p Permission) OSSPermission() Permission {
|
||||
}
|
||||
}
|
||||
|
||||
// ScopeParams holds the parameters used to fill in scope templates
|
||||
type ScopeParams struct {
|
||||
OrgID int64
|
||||
URLParams map[string]string
|
||||
}
|
||||
|
||||
const (
|
||||
GlobalOrgID = 0
|
||||
// Permission actions
|
||||
|
||||
Reference in New Issue
Block a user