diff --git a/app/assets/javascripts/projects/index.js b/app/assets/javascripts/projects/index.js index 12ab0c2e7..09e655bf1 100644 --- a/app/assets/javascripts/projects/index.js +++ b/app/assets/javascripts/projects/index.js @@ -10,7 +10,7 @@ /* global animateSpinner initFormSubmitLinks HelperModule dropdownSelector Sidebar Turbolinks */ (function() { - const PERMISSIONS = ['editable', 'archivable', 'restorable']; + const PERMISSIONS = ['editable', 'archivable', 'restorable', 'moveable']; var projectsWrapper = '#projectsWrapper'; var toolbarWrapper = '#toolbarWrapper'; var cardsWrapper = '#cardsWrapper'; diff --git a/app/views/projects/index/_folder_card.html.erb b/app/views/projects/index/_folder_card.html.erb index 1582cbaa6..b95a75bc1 100644 --- a/app/views/projects/index/_folder_card.html.erb +++ b/app/views/projects/index/_folder_card.html.erb @@ -2,6 +2,7 @@ data-id="<%= folder.id %>" data-edit-url="<%= edit_project_folder_path(folder) %>" data-editable="<%= can_update_team?(current_team) %>" + data-moveable="<%= can_update_team?(current_team) %>" data-archivable="<%= folder.active? && can_update_team?(current_team) %>" data-restorable="<%= folder.archived? && can_update_team?(current_team) %>">