Corrected some identation and formatting.
The user hash saved in session is the owner hash if the user is an administrator.
Merge origin/master