Commit c491d864 authored by Peter Leitzen's avatar Peter Leitzen

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

parent 839b776f
...@@ -592,8 +592,7 @@ module QuickActions ...@@ -592,8 +592,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