Skip to content

Commit b018567

Browse files
committed
Merge pull request #64 from ThomasHenley/patch-1
Removed redundant trick owner check before delete
2 parents dc3f3cd + 9ea601a commit b018567

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/Controllers/UserTricksController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ public function getDelete($slug)
146146
{
147147
$trick = $this->trick->findBySlug($slug);
148148

149-
if ($trick->user_id != Auth::user()->id) {
150-
return \Lang::get('user_tricks.trick_does_not_belong_to_you');
151-
}
152-
153149
$trick->tags()->detach();
154150
$trick->categories()->detach();
155151
$trick->delete();

0 commit comments

Comments
 (0)