Skip to content

Commit 70c9939

Browse files
committedApr 18, 2012
Make sure that viewing permissions are obeyed in the method, and that the DataForm just doesn't hide the link. Fixes bug #12353.

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎docs/changelog/7.x.x.txt

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- fixed: encryptLogin and sslEnabled both need to be true
1414
- fixed: Cache's setByHTTP method returns content, even when it gets an error in the request. This gives the SC asset fits.
1515
- fixed #12349: Friends invitation error
16+
- fixed #12353: Dataform List mode
1617

1718
7.10.24
1819
- fixed #12318: asset error causes asset manager to fail

‎lib/WebGUI/Asset/Wobject/DataForm.pm

+2
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,8 @@ Renders the list view of the DataForm.
12801280

12811281
sub viewList {
12821282
my $self = shift;
1283+
return $self->session->privilege->insufficient
1284+
unless $self->session->user->isInGroup($self->get("groupToViewEntries"));
12831285
my $var = $self->getTemplateVars;
12841286
return $self->processTemplate($self->getListTemplateVars($var), undef, $self->{_viewListTemplate});
12851287
}

0 commit comments

Comments
 (0)
Please sign in to comment.