oioioi.su
¶
The SU app is used to change the current logged in user on-the-fly.
In order to achieve this goal, the module introduces concept of effective
and real user privileges known from Unix-like systems. The effective
user is stored in request.user
field, while the real in
request.real_user
.
On-the-fly means that current session variables are preserved while changing effective user, which may be also a pitfall if some code stores there data directly connected with current user scope.