zsoldosp / django-currentuser

Conveniently store reference to request user on thread/db level.
BSD 3-Clause "New" or "Revised" License
139 stars 40 forks source link

Add other user object data #16

Closed derchrisuk closed 5 years ago

derchrisuk commented 5 years ago

Hi,

would it be possible to add additional user object data? I'm looking for users is_staff or is_superuser Need to work with this data in a place where I'm not able to get to the User object model. And this plugin was already able to provide me with the username.

Thanks, Christian

belugame commented 5 years ago

Looking at the tests, you should already get the full user object, same as if you'd use request.user