fixed: Permissions aren't correctly applied to Article attachments

This commit is contained in:
Graham Knop 2009-02-05 20:02:52 +00:00
parent 4d4dc3b253
commit fbd118d37e
2 changed files with 18 additions and 0 deletions

View file

@ -23,6 +23,7 @@
- fixed #9050: Safari Hover Help Hosed (and funny survey hover help in Firefox)
- fixed #9675: gallary search list displays wrong date for pictures
- fixed: Added survey.css as a snippet. Had been left out.
- fixed: Permissions aren't correctly applied to Article attachments
7.6.10
- fixed #9577: WebGUI::Form::Url::getValue returns blank rather than undef for blank fields

View file

@ -234,6 +234,23 @@ sub processPropertiesFromFormPost {
$self->setSize($size);
}
#-------------------------------------------------------------------
sub update {
my $self = shift;
my $previousStorageId = $self->get('storageId');
$self->SUPER::update(@_);
##update may have entered a new storageId. Reset the cached one just in case.
if ($self->get("storageId") ne $previousStorageId) {
delete $self->{_storageLocation};
}
$self->getStorageLocation->setPrivileges(
$self->get("ownerUserId"),
$self->get("groupIdView"),
$self->get("groupIdEdit"),
);
}
#-------------------------------------------------------------------
sub purge {