oioioi.su.utils
¶
Module Contents¶
Functions¶
|
|
|
|
|
|
|
Changes current effective user to |
|
Changes effective user back to real user |
- oioioi.su.utils.su_to_user(request, user, backend_path=None)[source]¶
Changes current effective user to
user
.After changing to
user
, originalrequest.user
is saved inrequest.real_user
. If given,backend_path
should be dotted name of authentication backend, otherwise it’s inherited from current user.