Explorar o código

资料归集,无权限时,不允许移动

MaiXinRong %!s(int64=2) %!d(string=hai) anos
pai
achega
c1faf8f1c2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/public/js/file_detail.js

+ 1 - 0
app/public/js/file_detail.js

@@ -420,6 +420,7 @@ $(document).ready(function() {
                 filingObj.expandFiling(node, false);
                 filingObj.expandFiling(node, false);
             },
             },
             beforeDrop: function(key, nodes, target, moveType, isCopy) {
             beforeDrop: function(key, nodes, target, moveType, isCopy) {
+                if (!canFiling) return false;
                 if (!target) return false;
                 if (!target) return false;
                 if (nodes[0].level < 1) {
                 if (nodes[0].level < 1) {
                     toastr.error('顶层节点请勿移动');
                     toastr.error('顶层节点请勿移动');