refs #1976 fixed company controller
This commit is contained in:
parent
f66f61ba85
commit
6892947149
@ -135,7 +135,7 @@ class Companies extends ApiController
|
|||||||
*
|
*
|
||||||
* @return \Dingo\Api\Http\Response
|
* @return \Dingo\Api\Http\Response
|
||||||
*/
|
*/
|
||||||
public function canAccess($company)
|
public function canAccess(Company $company)
|
||||||
{
|
{
|
||||||
if (!empty($company) && $this->isUserCompany($company->id)) {
|
if (!empty($company) && $this->isUserCompany($company->id)) {
|
||||||
return new Response('');
|
return new Response('');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user