svn: /web/doc-editor/trunk/php/ ExtJsController.php
| From: | Yannick Torres | Date: | Thu, 30 Dec 2010 22:09:31 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ ExtJsController.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1921@lists.php.net to get a copy of this message | ||
yannick Thu, 30 Dec 2010 22:09:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306883
Log:
Use new method to check is the current user is an admin or not (global or language admin)
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 2010-12-30 22:08:19 UTC (rev 306882)
+++ web/doc-editor/trunk/php/ExtJsController.php 2010-12-30 22:09:31 UTC (rev 306883)
@@ -1162,7 +1162,7 @@
$newOwner = $this->getRequestVariable('newOwner');
// This user must be a global admin or the admin for this lang
- if( $am->isGlobalAdmin() || $am->isLangAdmin() )
+ if( $am->isAdmin(true) )
{
$am->setFileOwner($fileIdDB, $newOwner);