Add comment
This commit is contained in:
parent
91b9a099a3
commit
513ef59d4a
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ def add_list(request) -> HttpResponse:
|
||||||
"""Allow users to add a new todo list to the group they're in.
|
"""Allow users to add a new todo list to the group they're in.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Only staffers can add lists.
|
# Only staffers can add lists, regardless of TODO_STAFF_USER setting.
|
||||||
if not request.user.is_staff:
|
if not request.user.is_staff:
|
||||||
raise PermissionDenied
|
raise PermissionDenied
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue