Commit 70db6386 authored by Peter Leitzen's avatar Peter Leitzen Committed by Sean McGivern

Hide `/tag` quick action from non-authorised users

parent df4db1b7
...@@ -593,8 +593,7 @@ module QuickActions ...@@ -593,8 +593,7 @@ module QuickActions
tag_name_and_message.split(' ', 2) tag_name_and_message.split(' ', 2)
end end
condition do condition do
issuable.is_a?(Commit) issuable.is_a?(Commit) && current_user.can?(:push_code, project)
# TODO authorize
end end
command :tag do |(tag_name, message)| command :tag do |(tag_name, message)|
@updates[:tag_name] = tag_name @updates[:tag_name] = tag_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment