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
6f59aa43
Commit
6f59aa43
authored
Nov 13, 2019
by
Nathan Friend
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update :release_edit_page to default to on
This commit makes the release edit page enabled by default.
parent
fb72ef07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/projects/releases_controller.rb
app/controllers/projects/releases_controller.rb
+2
-2
app/presenters/release_presenter.rb
app/presenters/release_presenter.rb
+1
-1
No files found.
app/controllers/projects/releases_controller.rb
View file @
6f59aa43
...
...
@@ -6,7 +6,7 @@ class Projects::ReleasesController < Projects::ApplicationController
before_action
:release
,
only:
%i[edit update]
before_action
:authorize_read_release!
before_action
do
push_frontend_feature_flag
(
:release_edit_page
,
project
)
push_frontend_feature_flag
(
:release_edit_page
,
project
,
default_enabled:
true
)
push_frontend_feature_flag
(
:release_issue_summary
,
project
)
end
before_action
:authorize_update_release!
,
only:
%i[edit update]
...
...
@@ -35,7 +35,7 @@ class Projects::ReleasesController < Projects::ApplicationController
private
def
authorize_update_release!
access_denied!
unless
Feature
.
enabled?
(
:release_edit_page
,
project
)
access_denied!
unless
Feature
.
enabled?
(
:release_edit_page
,
project
,
default_enabled:
true
)
access_denied!
unless
can?
(
current_user
,
:update_release
,
release
)
end
...
...
app/presenters/release_presenter.rb
View file @
6f59aa43
...
...
@@ -52,6 +52,6 @@ class ReleasePresenter < Gitlab::View::Presenter::Delegated
end
def
release_edit_page_available?
::
Feature
.
enabled?
(
:release_edit_page
,
project
)
::
Feature
.
enabled?
(
:release_edit_page
,
project
,
default_enabled:
true
)
end
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