mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-07-01 23:00:11 +02:00
* On the homepage, only redirect to the dashboard if the user is not staff (was redirecting if user was authenticated, although dashboard is for staff-only) (Issue #40)
* When editing a ticket, only show staff users in the 'Assign To' drop-down box (Issue #40)
This commit is contained in:
@ -21,7 +21,7 @@ from helpdesk.models import Ticket, Queue
|
||||
|
||||
|
||||
def homepage(request):
|
||||
if request.user.is_authenticated():
|
||||
if request.user.is_staff:
|
||||
if getattr(request.user.usersettings.settings, 'login_view_ticketlist', False):
|
||||
return HttpResponseRedirect(reverse('helpdesk_list'))
|
||||
else:
|
||||
|
Reference in New Issue
Block a user