mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Add some permission code, to see does it fix something.
Thanks to xet7 ! Related #3377
This commit is contained in:
parent
8481c791d7
commit
7f3c4acf62
8 changed files with 117 additions and 50 deletions
|
|
@ -104,6 +104,10 @@ BlazeComponent.extendComponent({
|
|||
}).register('listHeader');
|
||||
|
||||
Template.listHeader.helpers({
|
||||
isBoardAdmin() {
|
||||
return Meteor.user().isBoardAdmin();
|
||||
},
|
||||
|
||||
showDesktopDragHandles() {
|
||||
currentUser = Meteor.user();
|
||||
if (currentUser) {
|
||||
|
|
@ -117,6 +121,10 @@ Template.listHeader.helpers({
|
|||
});
|
||||
|
||||
Template.listActionPopup.helpers({
|
||||
isBoardAdmin() {
|
||||
return Meteor.user().isBoardAdmin();
|
||||
},
|
||||
|
||||
isWipLimitEnabled() {
|
||||
return Template.currentData().getWipLimit('enabled');
|
||||
},
|
||||
|
|
@ -254,6 +262,12 @@ Template.listMorePopup.events({
|
|||
}),
|
||||
});
|
||||
|
||||
Template.listHeader.helpers({
|
||||
isBoardAdmin() {
|
||||
return Meteor.user().isBoardAdmin();
|
||||
},
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.currentList = this.currentData();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue