merge: Remove check to prevent admin reporting (Fixes #757) (!727)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/727

Closes #757

Approved-by: Julia <julia@insertdomain.name>
Approved-by: Marie <github@yuugi.dev>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
This commit is contained in:
Hazelnoot 2024-11-17 00:39:08 +00:00
commit da2dfee0a8
1 changed files with 0 additions and 4 deletions

View File

@ -66,10 +66,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw new ApiError(meta.errors.cannotReportYourself); throw new ApiError(meta.errors.cannotReportYourself);
} }
if (await this.roleService.isAdministrator(targetUser)) {
throw new ApiError(meta.errors.cannotReportAdmin);
}
await this.abuseReportService.report([{ await this.abuseReportService.report([{
targetUserId: targetUser.id, targetUserId: targetUser.id,
targetUserHost: targetUser.host, targetUserHost: targetUser.host,