added privilege check - only content managers can create shortcuts
This commit is contained in:
parent
27e7d288da
commit
612f08b37c
1 changed files with 1 additions and 0 deletions
|
|
@ -211,6 +211,7 @@ sub www_copyList {
|
|||
|
||||
sub www_createShortcut () {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless ($self->session->user->isInGroup(4));
|
||||
my $isOnDashboard = ref $self->getParent eq 'WebGUI::Asset::Wobject::Dashboard';
|
||||
my $target = $isOnDashboard ? $self->getParent : $self;
|
||||
my $child = $target->addChild({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue