Variable permissionsConst

permissions: {
    admin: number;
    all: number;
    del: number;
    deleteOwn: number;
    insert: number;
    read: number;
    readOwn: number;
    update: number;
    updateOwn: number;
} = ...

Do not use this. Use PermissionTypes and hasEffectivePermission instead.