Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0ed681bd
Commit
0ed681bd
authored
Dec 14, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extra space in 403 message
parent
d0cef8ed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
changelogs/unreleased/mk-remove-extra-space.yml
changelogs/unreleased/mk-remove-extra-space.yml
+5
-0
ee/spec/requests/api/visual_review_discussions_spec.rb
ee/spec/requests/api/visual_review_discussions_spec.rb
+1
-1
lib/api/helpers.rb
lib/api/helpers.rb
+1
-1
No files found.
changelogs/unreleased/mk-remove-extra-space.yml
0 → 100644
View file @
0ed681bd
---
title
:
Remove extra space in API 403 Forbidden error message
merge_request
:
50016
author
:
type
:
changed
ee/spec/requests/api/visual_review_discussions_spec.rb
View file @
0ed681bd
lib/api/helpers.rb
View file @
0ed681bd
...
...
@@ -372,7 +372,7 @@ module API
def
forbidden!
(
reason
=
nil
)
message
=
[
'403 Forbidden'
]
message
<<
"
-
#{
reason
}
"
if
reason
message
<<
"-
#{
reason
}
"
if
reason
render_api_error!
(
message
.
join
(
' '
),
403
)
end
...
...
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