Get settings from defaults everywhere, update tests and perms
This commit is contained in:
parent
7a4984dc35
commit
1cd9700366
6 changed files with 30 additions and 15 deletions
|
@ -28,7 +28,7 @@ def list_detail(request, list_id=None, list_slug=None, view_completed=False) ->
|
|||
else:
|
||||
# Show a specific list, ensuring permissions.
|
||||
task_list = get_object_or_404(TaskList, id=list_id)
|
||||
if task_list.group not in request.user.groups.all() and not request.user.is_staff:
|
||||
if task_list.group not in request.user.groups.all() and not request.user.is_superuser:
|
||||
raise PermissionDenied
|
||||
tasks = Task.objects.filter(task_list=task_list.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue