Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Harbor 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
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
c5fc6c7d
Commit
c5fc6c7d
authored
8 years ago
by
Mauricio Giacomini Girardello
Browse files
Options
Downloads
Patches
Plain Diff
disable feature 'allow_client_application' in development env
parent
a9f1b5a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/controllers/application_controller.rb
+1
-1
1 addition, 1 deletion
app/controllers/application_controller.rb
config/feature.yml
+3
-3
3 additions, 3 deletions
config/feature.yml
with
4 additions
and
4 deletions
app/controllers/application_controller.rb
+
1
−
1
View file @
c5fc6c7d
...
@@ -8,7 +8,7 @@ class ApplicationController < ActionController::API
...
@@ -8,7 +8,7 @@ class ApplicationController < ActionController::API
before_filter
:set_paper_trail_whodunnit
before_filter
:set_paper_trail_whodunnit
# check if client application is allowed to consumes the API.
# check if client application is allowed to consumes the API.
before_filter
:allow_client_application
before_filter
:allow_client_application
,
if:
->
{
Feature
.
active?
(
:allow_client_application
)
}
# Prevent CSRF attacks by raising an exception.
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
# For APIs, you may want to use :null_session instead.
...
...
This diff is collapsed.
Click to expand it.
config/feature.yml
+
3
−
3
View file @
c5fc6c7d
development
:
development
:
features
:
features
:
barra_brasil
:
false
allow_client_application
:
false
test
:
test
:
features
:
features
:
barra_brasil
:
true
allow_client_application
:
true
production
:
production
:
features
:
features
:
barra_brasil
:
true
allow_client_application
:
true
\ No newline at end of file
\ No newline at end of file
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