prevent dragging for anonymous user on taskboard
parent
3e24fa77a3
commit
cb782dd2b9
|
@ -36,6 +36,11 @@ module = angular.module("taigaBacklog")
|
||||||
|
|
||||||
TaskboardSortableDirective = ($repo, $rs, $rootscope) ->
|
TaskboardSortableDirective = ($repo, $rs, $rootscope) ->
|
||||||
link = ($scope, $el, $attrs) ->
|
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
|
oldParentScope = null
|
||||||
newParentScope = null
|
newParentScope = null
|
||||||
itemEl = null
|
itemEl = null
|
||||||
|
|
Loading…
Reference in New Issue