summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/CommonHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-11-01 14:31:02 +0100
committerYorhel <git@yorhel.nl>2015-11-01 14:31:19 +0100
commit878cff6baf375ffa9cf8ab33c7f448744381586e (patch)
treeb57d345947e20c67ed8d545c5643e9279f4072ec /lib/VNDB/Util/CommonHTML.pm
parentbf391c804fbbd6469d2e2892c29f98cc7204d251 (diff)
Remove 'you need to be logged in to edit this page' message
While helpful, it's also rather dominant. We're not that desperate for new contributes anymore.
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r--lib/VNDB/Util/CommonHTML.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 7504ace8..b576e4ad 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -329,11 +329,7 @@ sub htmlItemMessage {
if($obj->{locked}) {
p class => 'locked', mt '_itemmsg_locked';
- } elsif(!$self->authInfo->{id}) {
- p class => 'locked';
- lit mt '_itemmsg_login', '/u/login';
- end;
- } elsif(!$self->authCan('edit')) {
+ } elsif($self->authInfo->{id} && !$self->authCan('edit')) {
p class => 'locked', mt '_itemmsg_denied';
}
}