From 70c9939169822c6d3a9130e1e859e5f136e51b00 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 17 Apr 2012 19:02:12 -0700 Subject: [PATCH] Make sure that viewing permissions are obeyed in the method, and that the DataForm just doesn't hide the link. Fixes bug #12353. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/DataForm.pm | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 9c67f3ab4..8fdf70c19 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -13,6 +13,7 @@ - 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 #12349: Friends invitation error + - fixed #12353: Dataform List mode 7.10.24 - fixed #12318: asset error causes asset manager to fail diff --git a/lib/WebGUI/Asset/Wobject/DataForm.pm b/lib/WebGUI/Asset/Wobject/DataForm.pm index 5ae47a925..21df4fb92 100644 --- a/lib/WebGUI/Asset/Wobject/DataForm.pm +++ b/lib/WebGUI/Asset/Wobject/DataForm.pm @@ -1280,6 +1280,8 @@ Renders the list view of the DataForm. sub viewList { my $self = shift; + return $self->session->privilege->insufficient + unless $self->session->user->isInGroup($self->get("groupToViewEntries")); my $var = $self->getTemplateVars; return $self->processTemplate($self->getListTemplateVars($var), undef, $self->{_viewListTemplate}); }