We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2323f79 commit 477756eCopy full SHA for 477756e
server/api/controllers/cards/update.js
@@ -123,8 +123,12 @@ module.exports = {
123
throw Errors.CARD_NOT_FOUND; // Forbidden
124
}
125
126
- if (boardMembership.role !== BoardMembership.Roles.EDITOR) {
127
- throw Errors.NOT_ENOUGH_RIGHTS;
+ const isEditor = boardMembership.role === BoardMembership.Roles.EDITOR;
+ if (!isEditor) {
128
+ const allowedOnlyIsSubscribed = Object.keys(inputs).every((key) => ['id', 'isSubscribed'].includes(key));
129
+ if (!allowedOnlyIsSubscribed) {
130
+ throw Errors.NOT_ENOUGH_RIGHTS;
131
+ }
132
133
134
let nextBoard;
0 commit comments