FIX; donation api checkressource
This commit is contained in:
parent
3a2a1b4a56
commit
a013b2a814
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user