Save the permissions in the filecache if it's not saved yet
adding PHPDoc
adjust unit test assert values
Use &=
Merge pull request #8901 from owncloud/permissions-update-cache

Save the permissions in the filecache if it's not saved yet