Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
720d1f8f
Commit
720d1f8f
authored
8 years ago
by
Eugen Rochko
Browse files
Options
Downloads
Patches
Plain Diff
Restrict access to oauth/applications to admins only
parent
b746a931
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/initializers/doorkeeper.rb
+1
-1
1 addition, 1 deletion
config/initializers/doorkeeper.rb
with
1 addition
and
1 deletion
config/initializers/doorkeeper.rb
+
1
−
1
View file @
720d1f8f
...
...
@@ -15,7 +15,7 @@ Doorkeeper.configure do
# If you want to restrict access to the web interface for adding oauth authorized applications, you need to declare the block below.
admin_authenticator
do
current_user
||
redirect_to
(
new_user_session_url
)
(
current_user
&&
current_user
.
admin?
)
||
redirect_to
(
new_user_session_url
)
end
# Authorization Code expiration time (default 10 minutes).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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