Fix group permissions when editing/adding an Event. Fixes bug #11800.
This commit is contained in:
parent
7d59b7382b
commit
e0eaa2e13f
3 changed files with 10 additions and 3 deletions
|
|
@ -1345,10 +1345,14 @@ sub processPropertiesFromFormPost {
|
|||
WebGUI::VersionTag->new($session, $self->get('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->get("groupIdEventEdit")
|
||||
|| $self->getParent->get("groupIdEdit")
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue