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
f417d9aa
Commit
f417d9aa
authored
Mar 12, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1592 from jwilder/jw-fixes
Anonymous access fixes
parents
b91b47fc
13206fbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
conf/defaults.ini
+1
-1
pkg/middleware/middleware.go
+1
-1
No files found.
conf/defaults.ini
View file @
f417d9aa
...
...
@@ -78,7 +78,7 @@ auto_assign_org_role = Viewer
; enable anonymous access
enabled
=
false
; specify organization name that should be used for unauthenticated users
org_name
=
Main org.
org_name
=
main
; specify role for unauthenticated users
org_role
=
Viewer
...
...
pkg/middleware/middleware.go
View file @
f417d9aa
...
...
@@ -75,7 +75,7 @@ func GetContextHandler() macaron.Handler {
}
else
if
setting
.
AnonymousEnabled
{
orgQuery
:=
m
.
GetOrgByNameQuery
{
Name
:
setting
.
AnonymousOrgName
}
if
err
:=
bus
.
Dispatch
(
&
orgQuery
);
err
!=
nil
{
log
.
Error
(
3
,
"Anonymous access organization error
"
,
nil
)
log
.
Error
(
3
,
"Anonymous access organization error
: '%s': %s"
,
setting
.
AnonymousOrgName
,
err
)
}
else
{
ctx
.
IsSignedIn
=
false
ctx
.
AllowAnonymous
=
true
...
...
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