mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Clean up
This commit is contained in:
parent
740254b1ea
commit
5e4b72577a
@ -9,10 +9,6 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any,
|
|||||||
const epName = typeof endpoint === 'string' ? endpoint : endpoint.name;
|
const epName = typeof endpoint === 'string' ? endpoint : endpoint.name;
|
||||||
const ep = endpoints.find(e => e.name === epName);
|
const ep = endpoints.find(e => e.name === epName);
|
||||||
|
|
||||||
if (ep.name.includes('.')) {
|
|
||||||
return rej('INVALID_ENDPOINT');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ep.secure && !isSecure) {
|
if (ep.secure && !isSecure) {
|
||||||
return rej('ACCESS_DENIED');
|
return rej('ACCESS_DENIED');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user