mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01: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:
1 parent
e64acd03c5
commit
917c733092
1 file changed
+2
-1
@@ -20,7 +20,8 @@ function ws_isInvokeAllowed($res, $methodName, $params)
|
||||
}
|
||||
|
||||
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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user