Add email address field for projects

This commit is contained in:
Frederic Guillot
2017-02-04 16:03:29 -05:00
parent 8eac121888
commit d5c4c18ea0
36 changed files with 198 additions and 9 deletions

View File

@@ -32,6 +32,13 @@ class ProjectProcedure extends BaseProcedure
return $this->formatProject($project);
}
public function getProjectByEmail($email)
{
$project = $this->formatProject($this->projectModel->getByEmail($email));
ProjectAuthorization::getInstance($this->container)->check($this->getClassName(), 'getProjectByEmail', $project['id']);
return $this->formatProject($project);
}
public function getAllProjects()
{
return $this->formatProjects($this->projectModel->getAll());