* 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:
Ross Poulton
2009-01-19 09:31:24 +00:00
parent fe7d42e257
commit a95fc54586
2 changed files with 2 additions and 2 deletions

View File

@ -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: