Commit 4ca9812b authored by Georgios Tsakalos's avatar Georgios Tsakalos

fix bug in delete software action

parent ee7e8526
...@@ -43,7 +43,7 @@ class DeleteSoftware ...@@ -43,7 +43,7 @@ class DeleteSoftware
} }
$software = $this->softwareService->getSoftwareById($id); $software = $this->softwareService->getSoftwareById($id);
if ($teacher['school_id'] != $school->id) { if ($software['school_id'] != $school->id) {
$res = $res->withStatus(403, 'Schools not match'); $res = $res->withStatus(403, 'Schools not match');
return $res; return $res;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment