2
0
Эх сурвалжийг харах

Prevent normal user deleting or modifying too much.
Allow normal user to export board. Part 2.

Thanks to Samunosuke, pgh2357 and xet7 !

Related #3377

Lauri Ojansivu 4 жил өмнө
parent
commit
6cb4b9fe4a

+ 1 - 5
client/components/cards/checklists.js

@@ -55,11 +55,7 @@ BlazeComponent.extendComponent({
     self.autorun(() => {
     self.autorun(() => {
       const $itemsDom = $(self.itemsDom);
       const $itemsDom = $(self.itemsDom);
       if ($itemsDom.data('uiSortable') || $itemsDom.data('sortable')) {
       if ($itemsDom.data('uiSortable') || $itemsDom.data('sortable')) {
-        $(self.itemsDom).sortable(
-          'option',
-          'disabled',
-          !userIsMember(),
-        );
+        $(self.itemsDom).sortable('option', 'disabled', !userIsMember());
         if (Utils.isMiniScreenOrShowDesktopDragHandles()) {
         if (Utils.isMiniScreenOrShowDesktopDragHandles()) {
           $(self.itemsDom).sortable({
           $(self.itemsDom).sortable({
             handle: 'span.fa.checklistitem-handle',
             handle: 'span.fa.checklistitem-handle',