svn: /web/doc-editor/trunk/php/ ExtJsController.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
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);