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
5638c67b
Unverified
Commit
5638c67b
authored
Mar 04, 2019
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
org admins should only be able to access org admin pages
parent
a29b99b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
pkg/api/api.go
+11
-11
No files found.
pkg/api/api.go
View file @
5638c67b
...
...
@@ -33,17 +33,17 @@ func (hs *HTTPServer) registerRoutes() {
r
.
Get
(
"/profile/"
,
reqSignedIn
,
hs
.
Index
)
r
.
Get
(
"/profile/password"
,
reqSignedIn
,
hs
.
Index
)
r
.
Get
(
"/profile/switch-org/:id"
,
reqSignedIn
,
hs
.
ChangeActiveOrgAndRedirectToHome
)
r
.
Get
(
"/org/"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/org/new"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/datasources/"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/datasources/new"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/datasources/edit/*"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/org/users"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/org/users/new"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/org/users/invite"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/org/teams"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/org/teams/*"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/org/apikeys/"
,
req
SignedI
n
,
hs
.
Index
)
r
.
Get
(
"/org/"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/org/new"
,
req
GrafanaAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/datasources/"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/datasources/new"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/datasources/edit/*"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/org/users"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/org/users/new"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/org/users/invite"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/org/teams"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/org/teams/*"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/org/apikeys/"
,
req
OrgAdmi
n
,
hs
.
Index
)
r
.
Get
(
"/dashboard/import/"
,
reqSignedIn
,
hs
.
Index
)
r
.
Get
(
"/configuration"
,
reqGrafanaAdmin
,
hs
.
Index
)
r
.
Get
(
"/admin"
,
reqGrafanaAdmin
,
hs
.
Index
)
...
...
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