fixed a vulnerablity where unauthorized users could edit a data form entry
This commit is contained in:
parent
2c7576bdad
commit
15ac233cca
1 changed files with 1 additions and 1 deletions
|
|
@ -639,7 +639,7 @@ sub www_process {
|
|||
#-------------------------------------------------------------------
|
||||
sub www_view {
|
||||
my $var;
|
||||
$var->{entryId} = $session{form}{entryId};
|
||||
$var->{entryId} = $session{form}{entryId} if (WebGUI::Privilege::canEditWobject($_[0]->get("wobjectId")));
|
||||
if ($var->{entryId} eq "list" && WebGUI::Privilege::canEditWobject($_[0]->get("wobjectId"))) {
|
||||
return $_[0]->processTemplate($_[0]->get("listTemplateId"),$_[0]->getListTemplateVars,"DataForm/List");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue