Allow anyone who can edit an asset to create a shortcut to it.

This commit is contained in:
Colin Kuskie 2011-02-01 14:10:12 -08:00
parent eb8fa8f79f
commit 5b07ab3113
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,6 @@
7.10.9
- fixed #12030: Calendar Feed Time Zone Issue
- fixed: Permission on who can create a shortcut of an Asset.
7.10.8
- rfe #12016 for the top story as well

View file

@ -467,8 +467,7 @@ sub www_copyList {
sub www_createShortcut {
my $self = shift;
my $session = $self->session;
return $session->privilege->insufficient()
if !$session->user->isInGroup(12) || !$self->canView;
return $session->privilege->insufficient() if ! $self->canEdit;
my $isOnDashboard = $self->getParent->isa('WebGUI::Asset::Wobject::Dashboard');
my $shortcutParent = $isOnDashboard? $self->getParent : WebGUI::Asset->getImportNode($session);