Fixed peoject permission checking fai;ed.