use setPrivileges on files instead of doing it manually
This commit is contained in:
parent
8c18415c54
commit
9f53cdadfb
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue