Author: chabotc
Date: Thu Jul 17 16:12:26 2008
New Revision: 677774

URL: http://svn.apache.org/viewvc?rev=677774&view=rev
Log:
SHINDIG-458 non numeric people id's made post's fail

Modified:
    
incubator/shindig/trunk/php/src/social-api/dataservice/DataRequestHandler.php

Modified: 
incubator/shindig/trunk/php/src/social-api/dataservice/DataRequestHandler.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social-api/dataservice/DataRequestHandler.php?rev=677774&r1=677773&r2=677774&view=diff
==============================================================================
--- 
incubator/shindig/trunk/php/src/social-api/dataservice/DataRequestHandler.php 
(original)
+++ 
incubator/shindig/trunk/php/src/social-api/dataservice/DataRequestHandler.php 
Thu Jul 17 16:12:26 2008
@@ -25,7 +25,7 @@
                $owner = $token->getOwnerId();
                $viewer = $token->getViewerId();
                $method = $requestItem->getMethod();
-               if ($owner == 0 && $viewer == 0 && $method != 'GET') {
+               if ($owner === 0 && $viewer === 0 && $method != 'GET') {
                        // Anonymous requests are only allowed to GET data (not 
create/edit/delete)
                        $response = new ResponseItem(BAD_REQUEST, "[$method] 
not allowed for anonymous users", null);
                } elseif ($method == 'GET') {                   


Reply via email to