diff options
author | Yorhel <git@yorhel.nl> | 2013-11-25 17:56:42 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2013-11-25 17:56:42 +0100 |
commit | 7718d99adc2dc25c6ab38d7709841173fbed33a8 (patch) | |
tree | f3a3813b6c0d2532cfef26329696f3650e68bf17 | |
parent | f822a276ffbdb16c7f7e1d10cb7b7c04a60ca9d8 (diff) |
CommonHTML: Made 'copy' tab invisible to users without edits
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index 4a5bc789..ac1944a9 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -66,7 +66,7 @@ sub htmlMainTabs { end; } - if($type eq 'r' && $self->authCan('edit') || $type eq 'c' && $self->authCan('charedit')) { + if(($type eq 'r' && $self->authCan('edit') || $type eq 'c' && $self->authCan('charedit')) && $self->authInfo->{c_changes} > 0) { li $sel eq 'copy' ? (class => 'tabselected') : (); a href => "/$id/copy", mt '_mtabs_copy'; end; |