diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-01 08:50:00 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-01 08:50:00 +0000 |
commit | 91c4bda1ec6640abb8b1a585e1fd1f8955d53fd1 (patch) | |
tree | 42f8f79c6d356a04d0e8365a0921d7257f12c64d /core/controllers/items.php | |
parent | ab0fcb7453db7d93c9dc1dfd38e6d6f84a5b16b5 (diff) |
Prototype access control model. There's much left to do, but it's a
working implementation.
Diffstat (limited to 'core/controllers/items.php')
-rw-r--r-- | core/controllers/items.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/controllers/items.php b/core/controllers/items.php index 26b55492..6cf27fbf 100644 --- a/core/controllers/items.php +++ b/core/controllers/items.php @@ -99,11 +99,10 @@ class Items_Controller extends REST_Controller { // 1) Add security checks $parent = $item->parent(); if ($parent->id) { + module::event("{$item->type}_before_delete", $item); $item->delete(); } - module::event("{$item->type}_deleted", $item); - url::redirect("{$parent->type}s/{$parent->id}"); } |