Commit 6ee88ab0 authored by ∞'s avatar 💻

Let default permissions allow becomeuser

parent 044dad43
......@@ -70,9 +70,6 @@ class BecomeUser(crudlfap.ObjectView):
return user
def get(self, request, *a, **k):
if not request.user.is_superuser:
return http.HttpResponseForbidden()'BecomeUser by {}'.format(self.request.user))
become_user = request.session.get('become_user',
auth.login(request, self.object)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment