Use the right group in the canView check for Shop settings. fixes #10845.

This commit is contained in:
Colin Kuskie 2009-08-28 15:50:00 +00:00
parent d902174739
commit 0b43ba64f4
3 changed files with 43 additions and 35 deletions

View file

@ -132,7 +132,7 @@ Displays the general commerce settings.
sub www_editSettings {
my $self = shift;
return $self->session->privilege->adminOnly() unless ($self->session->user->isAdmin);
return $self->session->privilege->adminOnly() unless ($self->canManage);
my $i18n = WebGUI::International->new($self->session, "Shop");
my $ac = $self->getAdminConsole;
my $setting = $self->session->setting;