#!/usr/bin/perl package IkiWiki::Plugin::signinedit; use warnings; use strict; use IkiWiki 2.00; sub import { #{{{ hook(type => "canedit", id => "signinedit", call => \&canedit, last => 1); } # }}} sub canedit ($$$) { #{{{ my $page=shift; my $cgi=shift; my $session=shift; # Have the user sign in, if they are not already. This is why the # hook runs last, so that any hooks that don't need the user to # signin can override this. if (! defined $session->param("name") || ! IkiWiki::userinfo_get($session->param("name"), "regdate")) { return sub { IkiWiki::needsignin($cgi, $session) }; } else { return ""; } } #}}} 1 able id='header'> cgit logo index : notmuch
Unnamed repository; edit this file 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
path: root/tags/02/20/20170827040242.D37CC1C413@jawa.homebase.dk/unread
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/02/20/20170827040242.D37CC1C413@jawa.homebase.dk/unread
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
master
Diffstat (limited to 'tags/02/20/20170827040242.D37CC1C413@jawa.homebase.dk/unread')