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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 21 Jul 2011 10:05:29 +0000

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

Log:
fix anynmous check function

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

Modified: web/doc-editor/trunk/php/RepositoryManager.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryManager.php	2011-07-21 10:04:33 UTC (rev 313509)
+++ web/doc-editor/trunk/php/RepositoryManager.php	2011-07-21 10:05:29 UTC (rev 313510)
@@ -1299,7 +1299,7 @@

                 // Is the current user is a global admin or a lang admin ?
                 if( ! $am->isAdmin(true) ) {
-                    if( !(!$am->isAnonymous && $am->anonymous($a->user) ) ) {
+                    if( !(!$am->isAnonymous && $am->anonymous($a->user, $a->anonymousIdent) ) ) {
                         return 'file_isnt_owned_by_current_user';
                     }
                 }
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.