Added new permission model to view timer boards.

Enforced permission on base template for link to timerboard as well as view rendering.
Addresses #15
This commit is contained in:
Adarnof
2015-11-28 01:52:49 +00:00
parent d7f16ae91e
commit c9f61e5def
3 changed files with 9 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ def bootstrap_permissions():
Permission.objects.get_or_create(codename="blue_member", content_type=ct, name="blue_member")
Permission.objects.get_or_create(codename="corp_stats", content_type=ct, name="corp_stats")
Permission.objects.get_or_create(codename="timer_management", content_type=ct, name="timer_management")
Permission.objects.get_or_create(codename="timer_view", content_type=ct, name="timer_view")
Permission.objects.get_or_create(codename="srp_management", content_type=ct, name="srp_management")
Group.objects.get_or_create(name=settings.DEFAULT_AUTH_GROUP)
Group.objects.get_or_create(name=settings.DEFAULT_BLUE_GROUP)