"You are not allowed to change existing tags on this project."
end
protected_tag_checks
end
defprotected_tag_checks
returnunlesstag_protected?
ifforced_push?
return"You are not allowed to force push protected tags."#TODO: Wording, 'not allowed to update proteted tags'?
end
ifGitlab::Git.blank_ref?(@newrev)
return"You are not allowed to delete protected tags."#TODO: Wording, do these need to mention 'you' if the rule applies to everyone
end
if!user_access.can_push_tag?(@tag_name)
return"You are not allowed to create protected tags on this project."#TODO: Wording, it is a specific tag which you don't have access too, not all protected tags which might have different levels