enhance(delete): we all love to archive their black(out) history
This commit is contained in:
parent
b10ea1b79f
commit
ac58cc3ac5
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (note.id === 'a2h9mk6pav') {
|
||||||
|
throw new ApiError(meta.errors.accessDenied);
|
||||||
|
}
|
||||||
|
|
||||||
if (!await this.roleService.isModerator(me) && (note.userId !== me.id)) {
|
if (!await this.roleService.isModerator(me) && (note.userId !== me.id)) {
|
||||||
throw new ApiError(meta.errors.accessDenied);
|
throw new ApiError(meta.errors.accessDenied);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue