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
fa0542ca
Commit
fa0542ca
authored
Sep 15, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'quotas' of
https://github.com/raintank/grafana
into raintank-quotas
parents
6a30511f
39262264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pkg/api/quota.go
+2
-2
No files found.
pkg/api/quota.go
View file @
fa0542ca
...
...
@@ -27,7 +27,7 @@ func UpdateOrgQuota(c *middleware.Context, cmd m.UpdateOrgQuotaCmd) Response {
cmd
.
OrgId
=
c
.
ParamsInt64
(
":orgId"
)
cmd
.
Target
=
c
.
Params
(
":target"
)
if
_
,
ok
:=
m
.
QuotaToMap
(
setting
.
Quota
.
Org
)[
cmd
.
Target
];
!
ok
{
if
_
,
ok
:=
setting
.
Quota
.
Org
.
ToMap
(
)[
cmd
.
Target
];
!
ok
{
return
ApiError
(
404
,
"Invalid quota target"
,
nil
)
}
...
...
@@ -57,7 +57,7 @@ func UpdateUserQuota(c *middleware.Context, cmd m.UpdateUserQuotaCmd) Response {
cmd
.
UserId
=
c
.
ParamsInt64
(
":id"
)
cmd
.
Target
=
c
.
Params
(
":target"
)
if
_
,
ok
:=
m
.
QuotaToMap
(
setting
.
Quota
.
User
)[
cmd
.
Target
];
!
ok
{
if
_
,
ok
:=
setting
.
Quota
.
User
.
ToMap
(
)[
cmd
.
Target
];
!
ok
{
return
ApiError
(
404
,
"Invalid quota target"
,
nil
)
}
...
...
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