diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-17 08:14:08 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-17 08:14:08 -0700 |
commit | 8a6556b30bc34d69284df6246f4010a8835f3bc2 (patch) | |
tree | 7d0b5374bba65973c2231083bc5d93ad31f4ccfc /modules/gallery/helpers/gallery_event.php | |
parent | 0f766b149d0cee7af664f2321fddc6f04cda70ac (diff) |
Fix a bug where moved items don't properly inherit permissions from
their new target. After each move, recalculate the permissions for
the new parent's hierarchy.
Fixes ticket #552
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r-- | modules/gallery/helpers/gallery_event.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php index 2f3a64d3..1cd96372 100644 --- a/modules/gallery/helpers/gallery_event.php +++ b/modules/gallery/helpers/gallery_event.php @@ -35,6 +35,10 @@ class gallery_event_Core { access::delete_item($item); } + static function item_moved($item, $old_parent) { + access::recalculate_permissions($item->parent()); + } + static function user_login($user) { // If this user is an admin, check to see if there are any post-install tasks that we need // to run and take care of those now. |