fixed a minor bug of not checking a project member for commit properly

This commit is contained in:
hyung-hwan 2012-04-13 07:52:25 +00:00
parent 6a5a585b21
commit fd28d29786

View File

@ -41,7 +41,7 @@ class API extends Controller
if (!isset($projectid) || !isset($userid)) return 'NO';
$this->load->model ('ProjectModel', 'projects');
print ($this->projects->projectIsOwnedBy ($projectid, $userid) === FALSE ||
print ($this->projects->projectHasMember ($projectid, $userid) === FALSE ||
$this->projects->projectIsCommitable ($projectid) === FALSE)? 'NO': 'YES';
}