Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: members of root team should not see instance admin stuff

Andras Bacsai281c6e39a542
diff --git a/app/Models/User.php b/app/Models/User.php
index 3625b99302..ecc4ef6b66 100644
--- a/app/Models/User.php
+++ b/app/Models/User.php
@@ -180,6 +180,10 @@ class User extends Authenticatable implements SendsEmail
{
$found_root_team = auth()->user()->teams->filter(function ($team) {
if ($team->id == 0) {
+ if (! auth()->user()->isAdmin()) {
+ return false;
+ }
+
return true;
}