mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Export: improved API routes
- use an explicit "boards" domain: /api/boards/:boardId - pass authToken as a request parameter: /api/boards/:boardId?authToken=:token - in the future, same route can be used with authToken set in the Authenticate: header easily
This commit is contained in:
parent
a45a899137
commit
115ea533f6
3 changed files with 22 additions and 16 deletions
|
|
@ -88,7 +88,7 @@ Boards.helpers({
|
|||
return true;
|
||||
} else {
|
||||
// otherwise you have to be logged-in and active member
|
||||
return this.isActiveMember(user._id);
|
||||
return user && this.isActiveMember(user._id);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue