Skip to content

Commit

Permalink
Use correct permission namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturner246 committed Sep 20, 2024
1 parent cb789a3 commit 34be3cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def _process_call(uuid: str, action: ProcessAction) -> None:


@login_required
@permission_required("can_restart_processes", raise_exception=True)
@permission_required("auth.can_restart_processes", raise_exception=True)
def restart_process(request: HttpRequest, uuid: uuid.UUID) -> HttpResponse:
"""Restart the process associated to the given UUID.
Expand All @@ -117,7 +117,7 @@ def restart_process(request: HttpRequest, uuid: uuid.UUID) -> HttpResponse:


@login_required
@permission_required("main.can_kill_processes", raise_exception=True)
@permission_required("auth.can_kill_processes", raise_exception=True)
def kill_process(request: HttpRequest, uuid: uuid.UUID) -> HttpResponse:
"""Kill the process associated to the given UUID.
Expand All @@ -133,7 +133,7 @@ def kill_process(request: HttpRequest, uuid: uuid.UUID) -> HttpResponse:


@login_required
@permission_required("main.can_flush_processes", raise_exception=True)
@permission_required("auth.can_flush_processes", raise_exception=True)
def flush_process(request: HttpRequest, uuid: uuid.UUID) -> HttpResponse:
"""Flush the process associated to the given UUID.
Expand Down

0 comments on commit 34be3cc

Please sign in to comment.