summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2017-08-30 00:52:55 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2017-08-30 00:58:34 -0300
commit5bc95511e56af7cb4809dd8b2e4e9aedf275d63b (patch)
tree3685d5052a343aae79d38ff149195e9355d19d4a /models
parentf566022aa4cdddf20dd040c8fdc42b83f2cc340e (diff)
downloadwekan-5bc95511e56af7cb4809dd8b2e4e9aedf275d63b.tar.gz
wekan-5bc95511e56af7cb4809dd8b2e4e9aedf275d63b.tar.bz2
wekan-5bc95511e56af7cb4809dd8b2e4e9aedf275d63b.zip
Allow delete from client. List all integrations in web UI
Diffstat (limited to 'models')
-rw-r--r--models/integrations.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/integrations.js b/models/integrations.js
index e9447f69..826873ce 100644
--- a/models/integrations.js
+++ b/models/integrations.js
@@ -50,6 +50,9 @@ Integrations.allow({
update(userId, doc) {
return allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
},
+ remove(userId, doc) {
+ return allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
+ },
fetch: ['boardId'],
});