summaryrefslogtreecommitdiff
path: root/app/presenters/release_presenter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters/release_presenter.rb')
-rw-r--r--app/presenters/release_presenter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/presenters/release_presenter.rb b/app/presenters/release_presenter.rb
index 4eed278661c..65034158a06 100644
--- a/app/presenters/release_presenter.rb
+++ b/app/presenters/release_presenter.rb
@@ -58,6 +58,7 @@ class ReleasePresenter < Gitlab::View::Presenter::Delegated
end
def release_edit_page_available?
- ::Feature.enabled?(:release_edit_page, project, default_enabled: true)
+ ::Feature.enabled?(:release_edit_page, project, default_enabled: true) &&
+ can?(current_user, :update_release, release)
end
end