use setPrivileges on files instead of doing it manually
This commit is contained in:
parent
890a94d3d5
commit
04c49fb48e
2 changed files with 2 additions and 6 deletions
|
|
@ -583,7 +583,7 @@ sub update {
|
||||||
$self->setStorageLocation;
|
$self->setStorageLocation;
|
||||||
}
|
}
|
||||||
if ($self->get("ownerUserId") ne $before{owner} || $self->get("groupIdEdit") ne $before{edit} || $self->get("groupIdView") ne $before{view}) {
|
if ($self->get("ownerUserId") ne $before{owner} || $self->get("groupIdEdit") ne $before{edit} || $self->get("groupIdView") ne $before{view}) {
|
||||||
$self->getStorageLocation->setPrivileges($self->get("ownerUserId"),$self->get("groupIdView"),$self->get("groupIdEdit"));
|
$self->setPrivileges;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,11 +45,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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue