Allow anyone who can edit an asset to create a shortcut to it.
This commit is contained in:
parent
eb8fa8f79f
commit
5b07ab3113
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue