Update of /cvsroot/phpwebsite-comm/modules/article/inc
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28198/inc
Modified Files:
xmlrpc.php
Log Message:
Fixed Bug Report [ 2130663 ] - Restricted Users cannot edit their own articles
Index: xmlrpc.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/xmlrpc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** xmlrpc.php 21 Aug 2008 20:17:19 -0000 1.9
--- xmlrpc.php 10 Oct 2008 04:27:40 -0000 1.10
***************
*** 325,329 ****
return new IXR_Error(5020, 'Database Error! Article data could not be found.');
/* Check Authorization to do edit it */
! if (!Current_User::allow('article', 'edit_articles', $article->id))
return new IXR_Error(4022, 'Authorization Error! You are not authorixed to edit this article!');
/* Make sure it's not a multi-section article */
--- 325,329 ----
return new IXR_Error(5020, 'Database Error! Article data could not be found.');
/* Check Authorization to do edit it */
! if (!$article->can_edit())
return new IXR_Error(4022, 'Authorization Error! You are not authorixed to edit this article!');
/* Make sure it's not a multi-section article */
***************
*** 464,468 ****
return new IXR_Error(5020, 'Database Error! Article data could not be found.');
/* Check Authorization to do edit it */
! if (!Current_User::allow('article', 'edit_articles', $article->id))
return new IXR_Error(4022, 'Authorization Error! You are not authorixed to edit this article!');
--- 464,468 ----
return new IXR_Error(5020, 'Database Error! Article data could not be found.');
/* Check Authorization to do edit it */
! if (!$article->can_edit())
return new IXR_Error(4022, 'Authorization Error! You are not authorixed to edit this article!');
|