This commit is contained in:
syuilo 2018-07-13 23:39:20 +09:00
parent 740254b1ea
commit 5e4b72577a

View File

@ -9,10 +9,6 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any,
const epName = typeof endpoint === 'string' ? endpoint : endpoint.name;
const ep = endpoints.find(e => e.name === epName);
if (ep.name.includes('.')) {
return rej('INVALID_ENDPOINT');
}
if (ep.secure && !isSecure) {
return rej('ACCESS_DENIED');
}