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
8bb58ac2
Commit
8bb58ac2
authored
Jan 19, 2022
by
Etienne Baqué
Committed by
Gary Holtz
Jan 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding sentence to locales
parent
1fa306fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
app/controllers/users_controller.rb
app/controllers/users_controller.rb
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+3
-0
spec/requests/users_controller_spec.rb
spec/requests/users_controller_spec.rb
+1
-1
No files found.
app/controllers/users_controller.rb
View file @
8bb58ac2
...
...
@@ -151,7 +151,7 @@ class UsersController < ApplicationController
if
Gitlab
::
CurrentSettings
.
signup_enabled?
||
current_user
render
json:
{
exists:
!!
Namespace
.
find_by_path_or_name
(
params
[
:username
])
}
else
render
json:
{
error:
"You must be authenticated to access this path"
},
status: :unauthorized
render
json:
{
error:
_
(
'You must be authenticated to access this path.'
)
},
status: :unauthorized
end
end
...
...
locale/gitlab.pot
View file @
8bb58ac2
...
...
@@ -40917,6 +40917,9 @@ msgstr ""
msgid "You may close the milestone now."
msgstr ""
msgid "You must be authenticated to access this path."
msgstr ""
msgid "You must be logged in to search across all of GitLab"
msgstr ""
...
...
spec/requests/users_controller_spec.rb
View file @
8bb58ac2
...
...
@@ -665,7 +665,7 @@ RSpec.describe UsersController do
stub_application_setting
(
signup_enabled:
false
)
get
user_exists_url
'foo'
expected_json
=
{
error:
"You must be authenticated to access this path"
}.
to_json
expected_json
=
{
error:
"You must be authenticated to access this path
.
"
}.
to_json
expect
(
response
).
to
have_gitlab_http_status
(
:unauthorized
)
expect
(
response
.
body
).
to
eq
(
expected_json
)
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