Fix order in call to has_project_perm