Do not set addStoryUrl unless the user can really add Stories.
This commit is contained in:
parent
9d03cd52ca
commit
e8292a8a3f
1 changed files with 3 additions and 1 deletions
|
|
@ -348,8 +348,10 @@ sub viewTemplateVariables {
|
|||
}
|
||||
}
|
||||
|
||||
$var->{addStoryUrl} = $self->getUrl('func=add;class=WebGUI::Asset::Story');
|
||||
$var->{canPostStories} = $self->canPostStories;
|
||||
$var->{addStoryUrl} = $var->{canPostStories}
|
||||
? $self->getUrl('func=add;class=WebGUI::Asset::Story')
|
||||
: '';
|
||||
$var->{keywordCloud} = WebGUI::Keyword->new($session)->generateCloud({
|
||||
startAsset => $self,
|
||||
displayFunc => 'view',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue