diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-02-02 20:52:09 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-02-02 20:52:09 +0200 |
commit | 32f896f19d31f92b5c2e540d0960d00fbf1bf9c3 (patch) | |
tree | 83fe07b7c323e057c48a0e88cb32132e64a129df /models | |
parent | 6f0e0748e1eb6cac238edfcfcfcde1e41d613b96 (diff) | |
download | wekan-32f896f19d31f92b5c2e540d0960d00fbf1bf9c3.tar.gz wekan-32f896f19d31f92b5c2e540d0960d00fbf1bf9c3.tar.bz2 wekan-32f896f19d31f92b5c2e540d0960d00fbf1bf9c3.zip |
- [Fix Sandstorm export board from web](https://github.com/wekan/wekan/issues/2157).
- [Fix Error when logging in to Wekan REST API when using Sandstorm Wekan](https://github.com/wekan/wekan/issues/1279).
Sandstorm API works this way: Make API key, and from that key copy API URL and API KEY to below. It saves Wekan board to file.
`curl http://Bearer:APIKEY@api-12345.local.sandstorm.io:6080/api/boards/sandstorm/export?authToken=#APIKEY > wekanboard.json`
If later API key does not work, you need to remove it and make a new one.
Closes #2157,
closes #1279
Diffstat (limited to 'models')
-rw-r--r-- | models/export.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/export.js b/models/export.js index 50971c88..76f2da06 100644 --- a/models/export.js +++ b/models/export.js @@ -31,7 +31,7 @@ if (Meteor.isServer) { user = Meteor.users.findOne({ 'services.resume.loginTokens.hashedToken': hashToken, }); - } else { + } else if (!Meteor.settings.public.sandstorm) { Authentication.checkUserId(req.userId); user = Users.findOne({ _id: req.userId, isAdmin: true }); } |