mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 17:02:34 +01:00
FIX; donation api checkressource
This commit is contained in:
@@ -72,7 +72,7 @@ class Donations extends DolibarrApi
|
||||
throw new RestException(404, 'Donation not found');
|
||||
}
|
||||
|
||||
if( ! DolibarrApi::_checkAccessToResource('donation', $this->don->id)) {
|
||||
if( ! DolibarrApi::_checkAccessToResource('don', $this->don->id)) {
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user