mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix Worker Permissions does not allow for cards to be moved. - v8.15.
Thanks to xet7 ! Fixes #5990
This commit is contained in:
parent
fe104791b5
commit
18003900c2
5 changed files with 38 additions and 21 deletions
|
|
@ -5,6 +5,7 @@ template(name="minicard")
|
||||||
class="{{#if colorClass}}minicard-{{colorClass}}{{/if}}")
|
class="{{#if colorClass}}minicard-{{colorClass}}{{/if}}")
|
||||||
if canModifyCard
|
if canModifyCard
|
||||||
a.minicard-details-menu-with-handle.js-open-minicard-details-menu(title="{{_ 'cardDetailsActionsPopup-title'}}") ☰
|
a.minicard-details-menu-with-handle.js-open-minicard-details-menu(title="{{_ 'cardDetailsActionsPopup-title'}}") ☰
|
||||||
|
if canMoveCard
|
||||||
.handle
|
.handle
|
||||||
| ↕️
|
| ↕️
|
||||||
.dates
|
.dates
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ template(name="listHeader")
|
||||||
a.js-open-list-menu(title="{{_ 'listActionPopup-title'}}") ☰
|
a.js-open-list-menu(title="{{_ 'listActionPopup-title'}}") ☰
|
||||||
else
|
else
|
||||||
a.list-header-menu-icon.js-select-list ▶️
|
a.list-header-menu-icon.js-select-list ▶️
|
||||||
|
unless currentUser.isWorker
|
||||||
a.list-header-handle.handle.js-list-handle ↕️
|
a.list-header-handle.handle.js-list-handle ↕️
|
||||||
else if currentUser.isBoardMember
|
else if currentUser.isBoardMember
|
||||||
if isWatching
|
if isWatching
|
||||||
|
|
@ -72,6 +73,7 @@ template(name="listHeader")
|
||||||
a.js-open-list-menu(title="{{_ 'listActionPopup-title'}}") ☰
|
a.js-open-list-menu(title="{{_ 'listActionPopup-title'}}") ☰
|
||||||
if currentUser.isBoardMember
|
if currentUser.isBoardMember
|
||||||
unless currentUser.isCommentOnly
|
unless currentUser.isCommentOnly
|
||||||
|
unless currentUser.isWorker
|
||||||
a.list-header-handle.handle.js-list-handle ↕️
|
a.list-header-handle.handle.js-list-handle ↕️
|
||||||
|
|
||||||
template(name="editListTitleForm")
|
template(name="editListTitleForm")
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ template(name="swimlaneFixedHeader")
|
||||||
.swimlane-header-menu
|
.swimlane-header-menu
|
||||||
if currentUser
|
if currentUser
|
||||||
unless currentUser.isCommentOnly
|
unless currentUser.isCommentOnly
|
||||||
|
unless currentUser.isWorker
|
||||||
a.js-open-add-swimlane-menu.swimlane-header-plus-icon(title="{{_ 'add-swimlane'}}")
|
a.js-open-add-swimlane-menu.swimlane-header-plus-icon(title="{{_ 'add-swimlane'}}")
|
||||||
| ➕
|
| ➕
|
||||||
a.js-open-swimlane-menu(title="{{_ 'swimlaneActionPopup-title'}}")
|
a.js-open-swimlane-menu(title="{{_ 'swimlaneActionPopup-title'}}")
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,10 @@ Blaze.registerHelper('canModifyCard', () =>
|
||||||
Utils.canModifyCard(),
|
Utils.canModifyCard(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Blaze.registerHelper('canMoveCard', () =>
|
||||||
|
Utils.canMoveCard(),
|
||||||
|
);
|
||||||
|
|
||||||
Blaze.registerHelper('canModifyBoard', () =>
|
Blaze.registerHelper('canModifyBoard', () =>
|
||||||
Utils.canModifyBoard(),
|
Utils.canModifyBoard(),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -214,6 +214,15 @@ Utils = {
|
||||||
);
|
);
|
||||||
return ret;
|
return ret;
|
||||||
},
|
},
|
||||||
|
canMoveCard() {
|
||||||
|
const currentUser = ReactiveCache.getCurrentUser();
|
||||||
|
const ret = (
|
||||||
|
currentUser &&
|
||||||
|
currentUser.isBoardMember() &&
|
||||||
|
!currentUser.isCommentOnly()
|
||||||
|
);
|
||||||
|
return ret;
|
||||||
|
},
|
||||||
canModifyBoard() {
|
canModifyBoard() {
|
||||||
const currentUser = ReactiveCache.getCurrentUser();
|
const currentUser = ReactiveCache.getCurrentUser();
|
||||||
const ret = (
|
const ret = (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue