remove extraneous comment
This commit is contained in:
parent
36ee9382dd
commit
90ff04eebc
1 changed files with 0 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue