Skip to content

Commit

Permalink
Permissions typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturner246 committed Sep 20, 2024
1 parent 8134cc8 commit cb789a3
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("main.can_restart_process", raise_exception=True)
@permission_required("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_process", raise_exception=True)
@permission_required("main.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_process", raise_exception=True)
@permission_required("main.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 cb789a3

Please sign in to comment.