summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2013-11-25 17:56:42 +0100
committerYorhel <git@yorhel.nl>2013-11-25 17:56:42 +0100
commit7718d99adc2dc25c6ab38d7709841173fbed33a8 (patch)
treef3a3813b6c0d2532cfef26329696f3650e68bf17 /lib/VNDB/Util
parentf822a276ffbdb16c7f7e1d10cb7b7c04a60ca9d8 (diff)
CommonHTML: Made 'copy' tab invisible to users without edits
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r--lib/VNDB/Util/CommonHTML.pm2
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;