diff --git a/codepot/src/codepot/controllers/api.php b/codepot/src/codepot/controllers/api.php index 9eb9f1ea..763ba5fb 100644 --- a/codepot/src/codepot/controllers/api.php +++ b/codepot/src/codepot/controllers/api.php @@ -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'; }