diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-13 22:23:09 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-13 22:23:09 -0700 |
commit | 1a0d76c43e3545771ae3e1c6ad6ba255beeae32d (patch) | |
tree | 497e8d45e86983d3fd4929147f9728aed93b5740 /modules/gallery/helpers/gallery_task.php | |
parent | 19750cb0d5499920bb7786aa4f890dec84fc5a1f (diff) |
When moving a single item, just copy its permissions from its parent
album. This is totally legal since an items permissions must be the
same as its parent's, and it's much faster for large installs where
a complete recalculation can be very costly. Should fix #1360.
Diffstat (limited to 'modules/gallery/helpers/gallery_task.php')
-rw-r--r-- | modules/gallery/helpers/gallery_task.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_task.php b/modules/gallery/helpers/gallery_task.php index 985346ba..3b173928 100644 --- a/modules/gallery/helpers/gallery_task.php +++ b/modules/gallery/helpers/gallery_task.php @@ -571,7 +571,7 @@ class gallery_task_Core { // The new cache rows are there, but they're incorrectly populated so we have to fix // them. If this turns out to be too slow, we'll have to refactor // access::recalculate_permissions to allow us to do it in slices. - access::recalculate_permissions(item::root()); + access::recalculate_album_permissions(item::root()); $state = self::FIX_STATE_DONE; } break; |