summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_task.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-13 22:23:09 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-13 22:23:09 -0700
commit1a0d76c43e3545771ae3e1c6ad6ba255beeae32d (patch)
tree497e8d45e86983d3fd4929147f9728aed93b5740 /modules/gallery/helpers/gallery_task.php
parent19750cb0d5499920bb7786aa4f890dec84fc5a1f (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.php2
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;