mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04:00
Prevent normal user deleting or modifying too much.
Allow normal user to export board. Part 2. Thanks to Samunosuke, pgh2357 and xet7 ! Related #3377
This commit is contained in:
parent
c978f55c56
commit
6cb4b9fe4a
1 changed files with 1 additions and 5 deletions
|
@ -55,11 +55,7 @@ BlazeComponent.extendComponent({
|
|||
self.autorun(() => {
|
||||
const $itemsDom = $(self.itemsDom);
|
||||
if ($itemsDom.data('uiSortable') || $itemsDom.data('sortable')) {
|
||||
$(self.itemsDom).sortable(
|
||||
'option',
|
||||
'disabled',
|
||||
!userIsMember(),
|
||||
);
|
||||
$(self.itemsDom).sortable('option', 'disabled', !userIsMember());
|
||||
if (Utils.isMiniScreenOrShowDesktopDragHandles()) {
|
||||
$(self.itemsDom).sortable({
|
||||
handle: 'span.fa.checklistitem-handle',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue