Skip to content

Commit

Permalink
βœ” πŸ€” πŸ˜’
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Nov 26, 2023
1 parent e4a6ac6 commit b004807
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/api/controllers/fansub.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,14 @@ export class FansubController {
],
relations: ['user_']
});
if (fansub.dns_id || fansub.dns_id_alt) {
throw new HttpException({
info: `πŸ™„ 400 - Fansub API :: Gagal Menghapus Fansub ${req.params['slug']} πŸ˜ͺ`,
result: {
message: 'Fansub Sedang Terikat Domain'
}
}, HttpStatus.BAD_REQUEST);
}
if (user.role !== RoleModel.ADMIN && user.role !== RoleModel.MODERATOR && fansub.user_.id !== user.id) {
try {
const member = await this.fansubMemberRepo.findOneOrFail({
Expand Down

0 comments on commit b004807

Please sign in to comment.