In order to be able to set Flags of other users than the currently authenticated one, I moved the functions from AuthUser to User class.
Merge pull request #3 from LarsFronius/master

setFlags for all users.