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

[livejournal] r17866: LJSUP-7509. Add priv

Committer: gprochaev
LJSUP-7509. Add priv

U   trunk/htdocs/admin/browse/edit_community.bml
Modified: trunk/htdocs/admin/browse/edit_community.bml
===================================================================
--- trunk/htdocs/admin/browse/edit_community.bml	2010-12-06 10:54:43 UTC (rev 17865)
+++ trunk/htdocs/admin/browse/edit_community.bml	2010-12-06 10:56:21 UTC (rev 17866)
@@ -71,6 +71,9 @@
         $ret .= "<?needlogin?>";
     }
 
+    return "You are not allowed to view this page"
+        unless LJ::check_priv($remote, 'siteadmin', 'community_directory') || $LJ::IS_DEV_SERVER;
+
     my @cat_ = ();
     my @vert_ = ();
 

Tags: bml, livejournal, 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