Committer: ailyin
LJINT-362 (Comments for side projects)U trunk/htdocs/delcomment.bml
Modified: trunk/htdocs/delcomment.bml =================================================================== --- trunk/htdocs/delcomment.bml 2011-01-14 08:53:28 UTC (rev 18027) +++ trunk/htdocs/delcomment.bml 2011-01-14 10:00:12 UTC (rev 18028) @@ -1,7 +1,7 @@ <?_info nocache=>1 _info?><?_code -#line 4 +#line 5 use strict; use warnings; @@ -133,6 +133,7 @@ # now, let's find out what remote can actually do with the comment my $can_manage = $remote->can_manage($journal); + my %can = ( 'manage_journal' => $can_manage, @@ -142,7 +143,7 @@ # they can ban the comment author if they are the journal owner # and there is an author; also, they will not be able to ban # themselves - 'ban' => $can_manage and $poster and ( $remote != $poster ), + 'ban' => $can_manage && $poster && ( $remote != $poster ), # they can mark as spam unless the comment is their own; # they don't need to be the community maintainer to do that