summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index 11d8fd89..f272e097 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -1219,6 +1219,14 @@ if (Meteor.isServer) {
fetch: ['members'],
});
+ // All logged in users are allowed to reorder boards by dragging at All Boards page and Public Boards page.
+ Boards.allow({
+ update(userId, board, fieldNames) {
+ return _.contains(fieldNames, 'sort');
+ },
+ fetch: [],
+ });
+
// The number of users that have starred this board is managed by trusted code
// and the user is not allowed to update it
Boards.deny({