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:
Gabriel MABILLEandEmil Tullstedt authored and GitHub committed 2021-10-06 13:15:09 +02:00
1 parent d1b2b10e6a
commit 458371c8eb
6 files changed
+115 -35

No files matched your search

+6
View File
@@ -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