mirror of
https://github.com/wekan/wekan.git
synced 2026-02-17 21:48:07 +01:00
UI for rules list
This commit is contained in:
parent
d5870472fb
commit
f63482b587
19 changed files with 256 additions and 2 deletions
BIN
server/.DS_Store
vendored
Normal file
BIN
server/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
server/lib/.DS_Store
vendored
Normal file
BIN
server/lib/.DS_Store
vendored
Normal file
Binary file not shown.
|
|
@ -14,3 +14,6 @@ allowIsBoardMemberByCard = function(userId, card) {
|
|||
const board = card.board();
|
||||
return board && board.hasMember(userId);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
14
server/publications/rules.js
Normal file
14
server/publications/rules.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Meteor.publish('rules', (ruleId) => {
|
||||
check(ruleId, String);
|
||||
return Rules.find({ _id: ruleId });
|
||||
});
|
||||
|
||||
|
||||
Meteor.publish('allRules', () => {
|
||||
return Rules.find({});
|
||||
});
|
||||
|
||||
|
||||
Meteor.publish('allTriggers', () => {
|
||||
return Triggers.find({});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue