MCPcopy
hub / github.com/django/django / has_permission

Method has_permission

django/contrib/admin/sites.py:204–209  ·  view source on GitHub ↗

Return True if the given HttpRequest has permission to view *at least one* page in the admin site.

(self, request)

Source from the content-addressed store, hash-verified

202 return self._actions.items()
203
204 def has_permission(self, request):
205 """
206 Return True if the given HttpRequest has permission to view
207 *at least one* page in the admin site.
208 """
209 return request.user.is_active and request.user.is_staff
210
211 def admin_view(self, view, cacheable=False):
212 """

Callers 3

innerMethod · 0.95
each_contextMethod · 0.95
loginMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected