enhance format of .wgaccess files to provide security for Gallery files
This commit is contained in:
parent
1cd7d8fbc7
commit
8206aeaec5
5 changed files with 121 additions and 42 deletions
|
|
@ -78,10 +78,19 @@ A hash reference of optional parameters. None at this time.
|
|||
|
||||
sub applyConstraints {
|
||||
my $self = shift;
|
||||
$self->getStorageLocation->setPrivileges($self->get('ownerUserId'), $self->get('groupIdView'), $self->get('groupIdEdit'));
|
||||
$self->setPrivileges;
|
||||
$self->setSize;
|
||||
}
|
||||
|
||||
sub setPrivileges {
|
||||
my $self = shift;
|
||||
$self->getStorageLocation->setPrivileges(
|
||||
$self->get('ownerUserId'),
|
||||
$self->get('groupIdView'),
|
||||
$self->get('groupIdEdit'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue