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