Update user.php

Modified getAuthorizedGroups() and getAuthorizedViewLevels to always load the latest state from the database. Otherwise changes made through the backend might not get detected and thus not get applied to the related user.