Fixed a bug where project property of user was accessed before verifying user is logged in

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>
Merge branch 'master' of https://github.com/wichura/MataCore

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>

Conflicts:
	controllers/base/MataController.php