restrict quests properly
This commit is contained in:
parent
08aa25a292
commit
141e3af385
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ def get_user_data(request):
|
|||
'quests': (
|
||||
{key: {"label": quest.quest_type_label, "icon": quest.quest_type_icon}
|
||||
for key, quest in quest_types.items()
|
||||
if request.user.is_superuser or request.user_permissions.quests}
|
||||
if request.user.is_superuser or key in request.user_permissions.quests}
|
||||
),
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue