mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
Merge branch 'data-source-instance-to-react' of https://github.com/grafana/grafana into data-source-instance-to-react
This commit is contained in:
commit
a810bed2f5
@ -196,14 +196,12 @@ type DsPermissionType int
|
||||
|
||||
const (
|
||||
DsPermissionQuery DsPermissionType = 1 << iota
|
||||
DsPermissionAdmin
|
||||
DsPermissionNoAccess
|
||||
)
|
||||
|
||||
func (p DsPermissionType) String() string {
|
||||
names := map[int]string{
|
||||
int(DsPermissionQuery): "Query",
|
||||
int(DsPermissionAdmin): "Admin",
|
||||
int(DsPermissionNoAccess): "No Access",
|
||||
}
|
||||
return names[int(p)]
|
||||
|
Loading…
Reference in New Issue
Block a user