mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Utils of canModifyCard and canModifyBoard + move this general functions to Utils class
This commit is contained in:
parent
b29ec93c34
commit
583f114c68
10 changed files with 28 additions and 135 deletions
|
|
@ -42,3 +42,11 @@ Blaze.registerHelper('moment', (...args) => {
|
|||
const [date, format] = args;
|
||||
return moment(date).format(format);
|
||||
});
|
||||
|
||||
Blaze.registerHelper('canModifyCard', () =>
|
||||
Utils.canModifyCard(),
|
||||
);
|
||||
|
||||
Blaze.registerHelper('canModifyBoard', () =>
|
||||
Utils.canModifyBoard(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue