From fd28d29786323a0571816c539ed3399ef57e1eab Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 13 Apr 2012 07:52:25 +0000 Subject: [PATCH] fixed a minor bug of not checking a project member for commit properly --- codepot/src/codepot/controllers/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }