aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/nms/web.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/nms/web.pm b/include/nms/web.pm
index af3f8b7..2b39911 100755
--- a/include/nms/web.pm
+++ b/include/nms/web.pm
@@ -61,6 +61,13 @@ sub setwhen {
return $when;
}
+sub ispublic() {
+ if (defined($get_params{'public'}) || $ENV{'REMOTE_USER'} eq "public") {
+ return 1;
+ } else {
+ return 0;
+ }
+}
# Sets the ifname. If we are logged in, it's simply set to "ifname", otherwise
# it's hashed for anonymization.
sub obfuscateifname {