mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03: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:
parent
e64acd03c5
commit
917c733092
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue