remove extraneous comment

This commit is contained in:
Hazelnoot 2025-06-24 09:34:12 -04:00
parent 36ee9382dd
commit 90ff04eebc

View file

@ -379,7 +379,6 @@ export class ApiCallService implements OnApplicationShutdown {
}
if ((ep.meta.requireModerator || ep.meta.requireAdmin) && (this.meta.rootUserId !== user?.id)) {
// Sync with UserEntityService
const myRoles = user ? await this.roleService.getUserRoles(user) : [];
if (ep.meta.requireModerator && !myRoles.some(r => r.isModerator || r.isAdministrator)) {
throw new ApiError({