Merge branch 'master' of git@github.com:plainblack/webgui

This commit is contained in:
daviddelikat 2009-10-19 22:09:13 -05:00
commit 9805541a6e
168 changed files with 8536 additions and 3809 deletions

Binary file not shown.

View file

@ -95,7 +95,8 @@ sub correctWikiAttachmentPermissions {
PAGE: while (my $wikiPage = $pageIterator->()) {
my $wiki = $wikiPage->getWiki;
next PAGE unless $wiki && $wiki->get('allowAttachments') && $wikiPage->getChildCount;
foreach my $attachment (@{ $wikiPage->getLineage(['children'])}) {
ATTACHMENT: foreach my $attachment (@{ $wikiPage->getLineage(['children'], { returnObjects => 1, })}) {
next ATTACHMENT unless $attachment;
$attachment->update({ groupIdEdit => $wiki->get('groupToEditPages') });
}
}