Allowd access to the dashboard per default. #361

This commit is contained in:
Oskar Hahn 2012-10-24 12:21:44 +02:00
parent 3e1938941f
commit 56b9e831c8
2 changed files with 23 additions and 2 deletions

View File

@ -44,6 +44,11 @@
"can_see_projector", "can_see_projector",
"projector", "projector",
"projectorslide" "projectorslide"
],
[
"can_see_dashboard",
"projector",
"projectorslide"
] ]
] ]
} }
@ -98,6 +103,11 @@
"can_see_projector", "can_see_projector",
"projector", "projector",
"projectorslide" "projectorslide"
],
[
"can_see_dashboard",
"projector",
"projectorslide"
] ]
] ]
} }
@ -177,6 +187,11 @@
"can_see_projector", "can_see_projector",
"projector", "projector",
"projectorslide" "projectorslide"
],
[
"can_see_dashboard",
"projector",
"projectorslide"
] ]
] ]
} }
@ -206,6 +221,11 @@
"can_see_projector", "can_see_projector",
"projector", "projector",
"projectorslide" "projectorslide"
],
[
"can_see_dashboard",
"projector",
"projectorslide"
] ]
] ]
} }

View File

@ -66,8 +66,9 @@ class GeneralConfig(FormView):
try: try:
anonymous = Group.objects.get(name='Anonymous') anonymous = Group.objects.get(name='Anonymous')
except Group.DoesNotExist: except Group.DoesNotExist:
default_perms = [u'can_see_agenda', u'can_see_projector', default_perms = ['can_see_agenda', 'can_see_projector',
u'can_see_motion', u'can_see_assignment'] 'can_see_motion', 'can_see_assignment',
'can_see_dashboard']
anonymous = Group() anonymous = Group()
anonymous.name = 'Anonymous' anonymous.name = 'Anonymous'
anonymous.save() anonymous.save()