refactor is_instance_admin

This commit is contained in:
Andras Bacsai
2023-08-14 16:56:13 +02:00
parent f8506f9d20
commit 952d335789
9 changed files with 29 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ class ServerController extends Controller
public function new_server()
{
if (!is_cloud()) {
if (!is_cloud() || is_instance_admin()) {
return view('server.create', [
'limit_reached' => false,
'private_keys' => PrivateKey::ownedByCurrentTeam()->get(),