use setPrivileges on files instead of doing it manually

This commit is contained in:
Graham Knop 2010-08-14 09:26:46 -05:00 committed by Colin Kuskie
parent 8c18415c54
commit 9f53cdadfb

View file

@ -44,11 +44,7 @@ ASSET: while (1) {
next ASSET;
}
last ASSET unless $file;
$file->getStorageLocation->setPrivileges(
$file->get('ownerUserId'),
$file->get('groupIdView'),
$file->get('groupIdEdit'),
);
$file->setPrivileges;
}
finish($session);