Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
48305b57
Commit
48305b57
authored
Jun 21, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard acl
parent
fcc8557d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
pkg/models/dashboard_acl.go
+0
-2
pkg/services/sqlstore/migrations/dashboard_acl.go
+3
-2
No files found.
pkg/models/dashboard_acl.go
View file @
48305b57
...
...
@@ -8,7 +8,6 @@ import (
type
PermissionType
int
const
(
PERMISSION_NONE
=
0
PERMISSION_VIEW
PermissionType
=
1
<<
iota
PERMISSION_EDIT
PERMISSION_ADMIN
...
...
@@ -16,7 +15,6 @@ const (
func
(
p
PermissionType
)
String
()
string
{
names
:=
map
[
int
]
string
{
int
(
PERMISSION_NONE
)
:
"None"
,
int
(
PERMISSION_VIEW
)
:
"View"
,
int
(
PERMISSION_EDIT
)
:
"Edit"
,
int
(
PERMISSION_ADMIN
)
:
"Admin"
,
...
...
pkg/services/sqlstore/migrations/dashboard_acl.go
View file @
48305b57
...
...
@@ -35,13 +35,14 @@ INSERT INTO dashboard_acl
(
org_id,
dashboard_id,
permission,
role,
created,
updated
)
VALUES
(-1,-1,'Viewer','2017-06-20','2017-06-20'),
(-1,-1,'Editor','2017-06-20','2017-06-20')
(-1,-1,
1,
'Viewer','2017-06-20','2017-06-20'),
(-1,-1,
2,
'Editor','2017-06-20','2017-06-20')
`
mg
.
AddMigration
(
"save default acl rules in dashboard_acl table"
,
new
(
RawSqlMigration
)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment