Fixing logic in UserManager
Fixing return value in UserRepository
Fixing phpdoc
Fixing query join in PermissionRepository