Skip to content

Commit

Permalink
[API] Candidates are now filtered by allowed project ids
Browse files Browse the repository at this point in the history
  • Loading branch information
spell00 committed Nov 4, 2020
1 parent fe3cb93 commit a55b304
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/api/php/models/candidatesrow.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class CandidatesRow implements \LORIS\Data\DataInstance
* Returns the ProjectID for this row, for filters such as
* \LORIS\Data\Filters\UserProjectMatch to match against.
*
<<<<<<< 6f473d70c944ab8cf4e4789201662802ee2f5b50
<<<<<<< 93cce92d5c5256611b933302e3eedc8cd33a69cf
* @return integer ProjectID
*/
Expand All @@ -100,13 +101,20 @@ class CandidatesRow implements \LORIS\Data\DataInstance
return intval($this->_projectid);
=======
* @return string ProjectID
=======
* @return integer ProjectID
>>>>>>> [API] Candidates are now filtered by allowed project ids
*/
public function getProjectID(): int
{
if ($this->_projectname === null) {
if ($this->_projectid === null) {
throw new \Exception('ProjectID is null');
}
<<<<<<< 6f473d70c944ab8cf4e4789201662802ee2f5b50
return intval($this->_projectname);
>>>>>>> [API] Add getProjectID to candidatesrow model
=======
return intval($this->_projectid);
>>>>>>> [API] Candidates are now filtered by allowed project ids
}
}

0 comments on commit a55b304

Please sign in to comment.