Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gitlab-External-Templates
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adri
Gitlab-External-Templates
Commits
e218cfa3
Commit
e218cfa3
authored
6 years ago
by
Kamil Trzciński
Browse files
Options
Downloads
Patches
Plain Diff
Make /api/v4/users/:user_id/projects authenticated
parent
3ee4d98e
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/api/projects.rb
+2
-0
2 additions, 0 deletions
lib/api/projects.rb
with
2 additions
and
0 deletions
lib/api/projects.rb
+
2
−
0
View file @
e218cfa3
...
...
@@ -85,6 +85,8 @@ def translate_params_for_compatibility(params)
use
:with_custom_attributes
end
get
":user_id/projects"
do
authenticate!
user
=
find_user
(
params
[
:user_id
])
not_found!
(
'User'
)
unless
user
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment