Commit a810bed2 by Peter Holmberg

Merge branch 'data-source-instance-to-react' of…

Merge branch 'data-source-instance-to-react' of https://github.com/grafana/grafana into data-source-instance-to-react
parents d71ae7bd 17a5e32f
...@@ -196,14 +196,12 @@ type DsPermissionType int ...@@ -196,14 +196,12 @@ type DsPermissionType int
const ( const (
DsPermissionQuery DsPermissionType = 1 << iota DsPermissionQuery DsPermissionType = 1 << iota
DsPermissionAdmin
DsPermissionNoAccess DsPermissionNoAccess
) )
func (p DsPermissionType) String() string { func (p DsPermissionType) String() string {
names := map[int]string{ names := map[int]string{
int(DsPermissionQuery): "Query", int(DsPermissionQuery): "Query",
int(DsPermissionAdmin): "Admin",
int(DsPermissionNoAccess): "No Access", int(DsPermissionNoAccess): "No Access",
} }
return names[int(p)] return names[int(p)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment