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
c365d52a
Commit
c365d52a
authored
Nov 23, 2016
by
Pavlos Daoglou
Committed by
Torkel Ödegaard
Nov 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[6486] Fix status code when adding an existing user to org (#6678)
parent
02dc51b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
pkg/api/org_users.go
+3
-0
No files found.
pkg/api/org_users.go
View file @
c365d52a
...
...
@@ -38,6 +38,9 @@ func addOrgUserHelper(cmd m.AddOrgUserCommand) Response {
cmd
.
UserId
=
userToAdd
.
Id
if
err
:=
bus
.
Dispatch
(
&
cmd
);
err
!=
nil
{
if
err
==
m
.
ErrOrgUserAlreadyAdded
{
return
ApiError
(
409
,
"User is already member of this organization"
,
nil
)
}
return
ApiError
(
500
,
"Could not add user to organization"
,
err
)
}
...
...
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