Do the new abilities to add/remove tags in bs 4.7 come with permissions? We are currently protecting release tags with a pre receive hook. How can I do the same thing when the gui is used to manage tags?
Justin,
When tags are created/deleted through the UI or REST, a TagCreationRequestedEvent/TagDeletionRequestedEvent
is published. You can listen for this event and block tag creation by calling cancel(KeyedMessage message)
on the event. The message you provide will be displayed in the UI or the REST response to notify the caller of the reason why the tag creation was blocked.
Cheers,
Michael
yep. that's what I assumed the answer would be for the "enterprise" solution. thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.