stephenmcd/mezzanine — pull request #1120 by joshcartme (2014-09-25 19:06:31+00:00)
Title: Fix DoesNotExist when non admin visits /admin

SitePermission objects are only added when staff users are created. If a non admin user (with no manually assigned site permissions) visits the admin a DoesNotExist is raised since no site permissions exist for the user. Therefore the templatetags logic should only run if the user is staff.