fixed a minor bug of not checking a project member for commit properly
This commit is contained in:
parent
6a5a585b21
commit
fd28d29786
@ -41,7 +41,7 @@ class API extends Controller
|
|||||||
if (!isset($projectid) || !isset($userid)) return 'NO';
|
if (!isset($projectid) || !isset($userid)) return 'NO';
|
||||||
|
|
||||||
$this->load->model ('ProjectModel', 'projects');
|
$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';
|
$this->projects->projectIsCommitable ($projectid) === FALSE)? 'NO': 'YES';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user