Merge pull request #6373 from okriuchykhin/ok_SCI_9136

Hide task share button if user has no permissions for task sharing [SCI-9136]
This commit is contained in:
Alex Kriuchykhin 2023-10-06 15:12:34 +02:00 committed by GitHub
commit 6da8725a46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
<div class="task-sharing-and-flows flex items-center gap-2 pl-3">
<%= render partial: 'my_modules/status_flow/task_flow_button', locals: { my_module: @my_module } if @my_module.my_module_status_flow %>
<%= javascript_include_tag("my_modules/status_flow") %>
<% if current_team.shareable_links_enabled? %>
<% if current_team.shareable_links_enabled? && can_share_my_module?(@my_module) %>
<div class="share-task-container" data-behaviour="vue">
<share-task-container
<%= 'shared' if @my_module.shared? %>