Skip to content

Commit

Permalink
fix(j-s): Add public prosecutor staff rule for indictment pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
unakb committed Sep 4, 2024
1 parent d2b47e7 commit aa584fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ export class CaseController {
@RolesRules(
prosecutorRule,
prosecutorRepresentativeRule,
publicProsecutorStaffRule,
districtCourtJudgeRule,
districtCourtRegistrarRule,
districtCourtAssistantRule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
districtCourtRegistrarRule,
prosecutorRepresentativeRule,
prosecutorRule,
publicProsecutorStaffRule,
} from '../../../../guards'
import { CaseController } from '../../case.controller'

Expand All @@ -19,9 +20,10 @@ describe('CaseController - Get indictment pdf rules', () => {
})

it('should give permission to roles', () => {
expect(rules).toHaveLength(5)
expect(rules).toHaveLength(6)
expect(rules).toContain(prosecutorRule)
expect(rules).toContain(prosecutorRepresentativeRule)
expect(rules).toContain(publicProsecutorStaffRule)
expect(rules).toContain(districtCourtJudgeRule)
expect(rules).toContain(districtCourtRegistrarRule)
expect(rules).toContain(districtCourtAssistantRule)
Expand Down

0 comments on commit aa584fd

Please sign in to comment.