vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r9959: LJSUP-7527: limit 'invite' command only ...

Committer: vsukhanov
LJSUP-7527: limit 'invite' command only one community
U   trunk/cgi-bin/LJ/Console/Command/Invite.pm
Modified: trunk/cgi-bin/LJ/Console/Command/Invite.pm
===================================================================
--- trunk/cgi-bin/LJ/Console/Command/Invite.pm	2011-01-28 03:47:14 UTC (rev 9958)
+++ trunk/cgi-bin/LJ/Console/Command/Invite.pm	2011-01-28 05:47:34 UTC (rev 9959)
@@ -38,6 +38,8 @@
 
     ## 1.1. Community
     my $community_name = $cmd;
+    return $self->error("This command is not allowed for '$community_name'")
+        unless $community_name eq 'ohnotheydidnt';
 
     ## 1.2. Permitions
     my @rights = ();

Tags: ljcom, pm, vadvs
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