fix: members of root team should not see instance admin stuff
This commit is contained in:
parent
95548b9d9b
commit
281c6e39a5
1 changed files with 4 additions and 0 deletions
|
|
@ -180,6 +180,10 @@ public function isInstanceAdmin()
|
|||
{
|
||||
$found_root_team = auth()->user()->teams->filter(function ($team) {
|
||||
if ($team->id == 0) {
|
||||
if (! auth()->user()->isAdmin()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue