Fix group permissions when editing/adding an Event. Fixes bug #11800.
This commit is contained in:
parent
0df5431ee3
commit
9667f34d53
3 changed files with 10 additions and 3 deletions
|
|
@ -1352,10 +1352,14 @@ override processEditForm => sub {
|
|||
WebGUI::VersionTag->new($session, $self->tagId)->setWorking;
|
||||
}
|
||||
|
||||
### Form is verified
|
||||
# Events are always hidden from navigation
|
||||
### Form is verified, fix properties
|
||||
if (!$session->form->hasParam('groupIdView')) {
|
||||
$self->update({
|
||||
groupIdView => $self->getParent->get('groupIdView'),
|
||||
});
|
||||
}
|
||||
|
||||
if (!$self->get("groupIdEdit")) {
|
||||
if (!$session->form->hasParam('groupIdEdit')) {
|
||||
my $groupIdEdit = $self->getParent->groupIdEventEdit
|
||||
|| $self->getParent->groupIdEdit
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue