Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jul 2, 2018
1 parent 2b23841 commit 51a1ccc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MonarcCore/Model/Table/UserTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ public function getByEmail($email)
public function delete($id, $last = true)
{

if ($this->getConnectedUser()['id'] == $id) {
throw new \MonarcCore\Exception\Exception("You can't delete yourself", 412);
}
// if ($this->getConnectedUser()['id'] == $id) {
// throw new \MonarcCore\Exception\Exception("You can't delete yourself", 412);
// }

$this->getDb()->beginTransaction();

Expand Down

0 comments on commit 51a1ccc

Please sign in to comment.