work on members
This commit is contained in:
parent
1c9cd484ad
commit
6fe4f85eec
@ -75,7 +75,7 @@ class Members extends DolibarrApi
|
||||
throw new RestException(404, 'member not found');
|
||||
}
|
||||
|
||||
if (!DolibarrApi::_checkAccessToResource('adherent', $member->id)) {
|
||||
if (!DolibarrApi::_checkAccessToResource('adherent', $member->id) && $id > 0) {
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user