Skip to content

Commit

Permalink
return if not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Dec 4, 2012
1 parent 9403907 commit fd130fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Trash/Model/Behavior/TrashableBehavior.php
Expand Up @@ -12,7 +12,7 @@ public function beforeDelete(Model $Model, $cascade = true) {
$userId = AuthComponent::user('id');

if (!$userId) {
return false;
return;
}

$Model->contain();
Expand Down

0 comments on commit fd130fd

Please sign in to comment.