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
tag_name_and_message.split(' ', 2)
end
condition do
issuable.is_a?(Commit)
# TODO authorize
issuable.is_a?(Commit) && current_user.can?(:push_code, project)
end
command :tag do |(tag_name, message)|
@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