Skip to content

Commit

Permalink
Make sure that viewing permissions are obeyed in the method, and that…
Browse files Browse the repository at this point in the history
… the DataForm just doesn't hide the link. Fixes bug #12353.
  • Loading branch information
perlDreamer committed Apr 18, 2012
1 parent 2c225f3 commit 70c9939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -13,6 +13,7 @@
- fixed: encryptLogin and sslEnabled both need to be true - fixed: encryptLogin and sslEnabled both need to be true
- fixed: Cache's setByHTTP method returns content, even when it gets an error in the request. This gives the SC asset fits. - fixed: Cache's setByHTTP method returns content, even when it gets an error in the request. This gives the SC asset fits.
- fixed #12349: Friends invitation error - fixed #12349: Friends invitation error
- fixed #12353: Dataform List mode


7.10.24 7.10.24
- fixed #12318: asset error causes asset manager to fail - fixed #12318: asset error causes asset manager to fail
Expand Down
2 changes: 2 additions & 0 deletions lib/WebGUI/Asset/Wobject/DataForm.pm
Expand Up @@ -1280,6 +1280,8 @@ Renders the list view of the DataForm.


sub viewList { sub viewList {
my $self = shift; my $self = shift;
return $self->session->privilege->insufficient
unless $self->session->user->isInGroup($self->get("groupToViewEntries"));
my $var = $self->getTemplateVars; my $var = $self->getTemplateVars;
return $self->processTemplate($self->getListTemplateVars($var), undef, $self->{_viewListTemplate}); return $self->processTemplate($self->getListTemplateVars($var), undef, $self->{_viewListTemplate});
} }
Expand Down

0 comments on commit 70c9939

Please sign in to comment.