svn: /web/doc-editor/trunk/php/ ExtJsController.php

[email protected] (Neal Poole)
Newsgroups php.doc.web
Message-ID <[email protected]>
nbpoole                                  Thu, 23 Jun 2011 21:49:43 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312418

Log:
Limit directory creation to global/lang admins.

Changed paths:
    U   web/doc-editor/trunk/php/ExtJsController.php

Modified: web/doc-editor/trunk/php/ExtJsController.php
===================================================================
--- web/doc-editor/trunk/php/ExtJsController.php	2011-06-23 21:48:15 UTC (rev 312417)
+++ web/doc-editor/trunk/php/ExtJsController.php	2011-06-23 21:49:43 UTC (rev 312418)
@@ -147,6 +147,10 @@
             return JsonResponseBuilder::failure();
         }

+        if ( !$am->isGlobalAdmin() && !$am->isLangAdmin() ) {
+            return JsonResponseBuilder::failure();
+        }
+
         $project = $am->project;
         $appConf = $am->appConf;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.