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; next ASSET;
} }
last ASSET unless $file; last ASSET unless $file;
$file->getStorageLocation->setPrivileges( $file->setPrivileges;
$file->get('ownerUserId'),
$file->get('groupIdView'),
$file->get('groupIdEdit'),
);
} }
finish($session); finish($session);