mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 09:22:21 +02:00
fixes #1344 add auth exception for pwg.images.uploadAsync
This method handles its own authentication and can be called by an anonymous request. Thus it should not be blocked by a $conf[guest_access] setting set to false.
This commit is contained in:
@@ -20,7 +20,8 @@ function ws_isInvokeAllowed($res, $methodName, $params)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !is_autorize_status(ACCESS_GUEST) and
|
if ( !is_autorize_status(ACCESS_GUEST) and
|
||||||
strpos($methodName,'pwg.session.')!==0 )
|
strpos($methodName,'pwg.session.')!==0 and
|
||||||
|
'pwg.images.uploadAsync'!=$methodName )
|
||||||
{
|
{
|
||||||
return new PwgError(401, 'Access denied');
|
return new PwgError(401, 'Access denied');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user