Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-01-29 23:34:54 +01:00
parent af61c19ffd
commit 1144b937eb

View File

@ -244,11 +244,11 @@ class AgendaEvents extends DolibarrApi
$this->actioncomm->fetch_userassigned(); $this->actioncomm->fetch_userassigned();
$this->actioncomm->oldcopy = clone $this->actioncomm; $this->actioncomm->oldcopy = clone $this->actioncomm;
} }
if ( ! $result ) { if (! $result ) {
throw new RestException(404, 'actioncomm not found'); throw new RestException(404, 'actioncomm not found');
} }
if ( ! DolibarrApi::_checkAccessToResource('actioncomm',$this->actioncomm->id)) { if (! DolibarrApi::_checkAccessToResource('actioncomm', $this->actioncomm->id)) {
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login); throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
} }
foreach($request_data as $field => $value) { foreach($request_data as $field => $value) {