Skip to content
Snippets Groups Projects
Verified Commit 0975dcb4 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: add playlist permissions to Host & Host+

parent c186e18c
No related branches found
No related tags found
1 merge request!59Add playlists
...@@ -20,6 +20,13 @@ PERMISSIONS = { ...@@ -20,6 +20,13 @@ PERMISSIONS = {
], ],
), ),
"default change profile": Permission.objects.filter(codename="change_profile"), "default change profile": Permission.objects.filter(codename="change_profile"),
"default add/change/delete playlist": Permission.objects.filter(
codename__in=[
"add_playlist",
"change_playlist",
"delete_playlist",
]
),
"custom add media-source": Permission.objects.filter( "custom add media-source": Permission.objects.filter(
codename__in=[ codename__in=[
"add__file", "add__file",
...@@ -53,6 +60,13 @@ PERMISSIONS = { ...@@ -53,6 +60,13 @@ PERMISSIONS = {
"change_timeslot", "change_timeslot",
], ],
), ),
"default add/change/delete playlist": Permission.objects.filter(
codename__in=[
"add_playlist",
"change_playlist",
"delete_playlist",
]
),
"custom add media-source": Permission.objects.filter( "custom add media-source": Permission.objects.filter(
codename__in=[ codename__in=[
"add__file", "add__file",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment