Mayflower/PHProjekt — pull request #57 by dsp (2011-11-05 15:03:28+00:00)
Title: PHProjekt #200

http://jira.opensource.mayflower.de/jira/browse/PHPROJEKT-200.

PHProjekt never checked for admin rights but rather always added full rights for the admin user with user id = 1 to the database. I removed that. As the admin user is able to see an item he will also appear as the currentUser. The rights of the current user are also saved. To avoid this backdoor, leading to rights for the admin beeing added to the db again (without explicitly adding it as a user) I removed the currentUser from getUserRights. Further refactoring of the current user behavior needs to be done to solve the overall issue, but so far the provided solution works.