mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 19:03:09 +02:00
parent
c1f6d996f6
commit
ea7504f564
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export const meta = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default define(meta, async (ps, user, token) => {
|
export default define(meta, async (ps, user, token) => {
|
||||||
const isSecure = token == null;
|
const isSecure = user != null && token == null;
|
||||||
|
|
||||||
// Lookup app
|
// Lookup app
|
||||||
const ap = await Apps.findOne(ps.appId);
|
const ap = await Apps.findOne(ps.appId);
|
||||||
|
|
Loading…
Reference in a new issue