do not show edit tab in the wiki page unless you can edit it

This commit is contained in:
Colin Kuskie 2008-11-24 04:56:32 +00:00
parent f228561aa9
commit 241dcf7e8b
5 changed files with 103 additions and 0 deletions

View file

@ -346,6 +346,7 @@ sub view {
editContent => $self->getEditForm,
allowsAttachments => $self->getWiki->get("allowAttachments"),
comments => $self->getFormattedComments(),
canEdit => $self->canEdit,
content => $self->getWiki->autolinkHtml(
$self->scrubContent,
{skipTitles => [$self->get('title')]},