chore: style

This commit is contained in:
DecDuck
2025-05-15 14:58:01 +10:00
parent 1d141c117b
commit 6dad3aeab7
5 changed files with 12 additions and 9 deletions

View File

@ -70,7 +70,9 @@ const systemACLPrefix = "system:";
export type SystemACL = Array<(typeof systemACLs)[number]>;
export type GlobalACL = `${typeof systemACLPrefix}${(typeof systemACLs)[number]}` | `${typeof userACLPrefix}${(typeof userACLs)[number]}`;
export type GlobalACL =
| `${typeof systemACLPrefix}${(typeof systemACLs)[number]}`
| `${typeof userACLPrefix}${(typeof userACLs)[number]}`;
class ACLManager {
private getAuthorizationToken(request: MinimumRequestObject) {
@ -176,7 +178,9 @@ class ACLManager {
return true;
}
async fetchAllACLs(request: MinimumRequestObject): Promise<GlobalACL[] | undefined> {
async fetchAllACLs(
request: MinimumRequestObject,
): Promise<GlobalACL[] | undefined> {
const userSession = await sessionHandler.getSession(request);
if (!userSession) {
const authorizationToken = this.getAuthorizationToken(request);