File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ public function post($request_data = null)
211211 throw new RestException (403 , "Insufficient rights " );
212212 }
213213 if (!DolibarrApiAccess::$ user ->hasRight ('societe ' , 'client ' , 'voir ' )) {
214- throw new RestException (403 , 'Access not allowed for login ' .DolibarrApiAccess::$ user ->login .'. No read permission on thirdparties. ' );
214+ throw new RestException (403 , 'Access not allowed for login ' .DolibarrApiAccess::$ user ->login .'. No read permission on all thirdparties. ' );
215215 }
216216 // Check mandatory fields
217217 $ result = $ this ->_validate ($ request_data );
@@ -677,7 +677,7 @@ public function put($id, $request_data = null)
677677 throw new RestException (403 );
678678 }
679679 if (!DolibarrApiAccess::$ user ->hasRight ('societe ' , 'client ' , 'voir ' )) {
680- throw new RestException (403 , 'Access not allowed for login ' .DolibarrApiAccess::$ user ->login .'. No read permission on thirdparties. ' );
680+ throw new RestException (403 , 'Access not allowed for login ' .DolibarrApiAccess::$ user ->login .'. No read permission on all thirdparties. ' );
681681 }
682682 $ result = $ this ->contract ->fetch ($ id );
683683 if (!$ result ) {
You can’t perform that action at this time.
0 commit comments