Skip to content

Commit

Permalink
Merge pull request #4426 from GSA-TTS/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jadudm authored Nov 1, 2024
2 parents f338ea6 + 8973e32 commit cef536d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 36 deletions.
12 changes: 6 additions & 6 deletions backend/audit/views/manage_submission_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ def get(self, request, *args, **kwargs):
report_id = kwargs["report_id"]
sac = SingleAuditChecklist.objects.get(report_id=report_id)

try:
Access.objects.get(email=request.user.email, sac=sac, role=self.role)
except Access.DoesNotExist:
if not Access.objects.filter(
email=request.user.email, sac=sac, role=self.role
).exists():
raise PermissionDenied(
"Only Audit Editors may remove audit access for other Audit Editors."
)
Expand Down Expand Up @@ -240,9 +240,9 @@ def post(self, request, *args, **kwargs):
report_id = kwargs["report_id"]
sac = SingleAuditChecklist.objects.get(report_id=report_id)

try:
Access.objects.get(email=request.user.email, sac=sac, role=self.role)
except Access.DoesNotExist:
if not Access.objects.filter(
email=request.user.email, sac=sac, role=self.role
).exists():
raise PermissionDenied(
"Only Audit Editors may remove audit access for other Audit Editors."
)
Expand Down
60 changes: 35 additions & 25 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
"license": "ISC",
"devDependencies": {
"@4tw/cypress-drag-drop": "^2.2.5",
"@babel/eslint-parser": "^7.25.8",
"@eslint/js": "^9.12.0",
"cypress": "^13.15.0",
"@babel/eslint-parser": "^7.25.9",
"@eslint/js": "^9.13.0",
"cypress": "^13.15.1",
"cypress-axe": "^1.5.0",
"cypress-downloadfile": "^1.2.4",
"cypress-file-upload": "^5.0.8",
"cypress-otp": "^1.0.3",
"eslint": "^9.12.0",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^4.0.0",
"eslint-plugin-cypress": "^4.1.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3",
"stylelint": "^15.10.1",
Expand Down

0 comments on commit cef536d

Please sign in to comment.