prevent dragging for anonymous user on taskboard

stable
Juanfran 2015-02-26 10:11:49 +01:00 committed by David Barragán Merino
parent 3e24fa77a3
commit cb782dd2b9
1 changed files with 38 additions and 33 deletions

View File

@ -36,6 +36,11 @@ module = angular.module("taigaBacklog")
TaskboardSortableDirective = ($repo, $rs, $rootscope) ->
link = ($scope, $el, $attrs) ->
bindOnce $scope, "project", (project) ->
# If the user has not enough permissions we don't enable the sortable
if not (project.my_permissions.indexOf("modify_us") > -1)
return
oldParentScope = null
newParentScope = null
itemEl = null