mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-28 06:13:09 +02:00
Clean up
This commit is contained in:
parent
a0a116b7bf
commit
2db01f3d5c
1 changed files with 0 additions and 4 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue