Assign KBItems to teams

This allows you to only show on the dashboard those tickets which belong to a
given user's team.
This commit is contained in:
Timothy Hobbs
2020-01-27 19:45:15 +01:00
parent eea76a5eb7
commit 5b0d44ec3a
7 changed files with 81 additions and 5 deletions

View File

@ -21,7 +21,7 @@ def index(request):
huser = user.huser_from_request(request)
# TODO: It'd be great to have a list of most popular items here.
return render(request, 'helpdesk/kb_index.html', {
'kb_categories': huser.get_kb_categories(),
'kb_categories': huser.get_allowed_kb_categories(),
'helpdesk_settings': helpdesk_settings,
})