匿名ユーザーでapp/showをリクエストすると500を返すのを修正 Fix #6715 (#6716)

This commit is contained in:
MeiMei 2020-09-28 21:27:05 +09:00 committed by GitHub
parent 70108fb430
commit 481cfa2146

View File

@ -29,7 +29,7 @@ export const meta = {
};
export default define(meta, async (ps, user, token) => {
const isSecure = token == null;
const isSecure = user != null && token == null;
// Lookup app
const ap = await Apps.findOne(ps.appId);