summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/services/quick_actions/interpret_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/quick_actions/interpret_service.rb b/app/services/quick_actions/interpret_service.rb
index f8dccfa465d..09f39523c35 100644
--- a/app/services/quick_actions/interpret_service.rb
+++ b/app/services/quick_actions/interpret_service.rb
@@ -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