Commits

Rahul kashyap committed ee69872

error in impersonating with staff

Comments (0)

Files changed (1)

impersonate/helpers.py

     else:
         # default allow checking:
         if not request.user.is_superuser:
-            if not request.user.is_staff or not allow_staff:
+            if not request.user.is_staff or not check_allow_staff():
                 return False
 
         return True