mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Fix 8.16: Switching Board View fails with 403 error.
Thanks to xet7 !
This commit is contained in:
parent
f8e576e890
commit
550d87ac6c
2 changed files with 22 additions and 2 deletions
|
|
@ -1729,6 +1729,14 @@ Meteor.methods({
|
|||
const user = ReactiveCache.getCurrentUser();
|
||||
user.setMobileMode(enabled);
|
||||
},
|
||||
setBoardView(view) {
|
||||
check(view, String);
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
if (!user) {
|
||||
throw new Meteor.Error('not-authorized', 'Must be logged in');
|
||||
}
|
||||
user.setBoardView(view);
|
||||
},
|
||||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue