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