formatting
This commit is contained in:
parent
2e90d26dc8
commit
d2e5e5a9e3
@ -31,11 +31,7 @@ trait Users
|
|||||||
|
|
||||||
$companies = $user->companies()->pluck('id')->toArray();
|
$companies = $user->companies()->pluck('id')->toArray();
|
||||||
|
|
||||||
if (in_array($id, $companies)) {
|
return in_array($id, $companies);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -55,10 +51,6 @@ trait Users
|
|||||||
|
|
||||||
$dashboards = $user->dashboards()->pluck('id')->toArray();
|
$dashboards = $user->dashboards()->pluck('id')->toArray();
|
||||||
|
|
||||||
if (in_array($id, $dashboards)) {
|
return in_array($id, $dashboards);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user