wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r23430: LJSUP-14485: If identity is not an admin...

Committer: wisest-owl
LJSUP-14485: If identity is not an administrator in not at least one comm, leave only identity username

U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-12-06 11:17:33 UTC (rev 23429)
+++ trunk/cgi-bin/weblib.pl	2012-12-06 11:22:17 UTC (rev 23430)
@@ -185,7 +185,7 @@
     my @list = LJ::get_authas_list($u, $opts);
 
     # only do most of form if there are options to select from
-    shift @list if $opts->{'remove_self'};
+    shift @list if @list > 1 && $opts->{'remove_self'};
     if (@list > 1 || $list[0] ne $u->{'user'}) {
         my $ret;
         my $label = $BML::ML{'web.authas.label'};

Tags: livejournal, pl, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments