Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jHgY7-0002H0-Pq for pgadmin-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 04:24:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHgY5-0003Ou-4b for pgadmin-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 04:24:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHgY4-0003Om-Po for pgadmin-hackers@lists.postgresql.org; Fri, 27 Mar 2020 04:24:48 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jHgY2-0001Z1-2x for pgadmin-hackers@lists.postgresql.org; Fri, 27 Mar 2020 04:24:47 +0000 Received: by mail-lj1-x232.google.com with SMTP id g27so8792867ljn.10 for ; Thu, 26 Mar 2020 21:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AHMt8JEgwWUOAsfeQ1mCve5Bf6LFvNWBjG81oUaiUm8=; b=EoccTGyLAgCdAM6gFtd6abfuuThpeOVG/OFF9k6Ms+DCyhrrNz/qsEY4OPSBEIuuo3 VljYNhJE7w5UxBQ2Ka71z9rFh7eID4l67k2vWV7QGdUj3CG5yQSPFGmU2t1GvuiY8o6Z 47Kou6UW8jtYBCwVZWVgTUOwI+SsKYCWovJRj6ZWwsircWoFLjmOaMtTkONT8iHofmz1 F93mYv0tyC4hyz6qYmd9Lpww03RETbkPAvPpOo+2/mduC4DNOEyEf8Z2t7CvotNlnBlB i+A8J9HHsG5wpJVeRoUHe4mmHzOGnKVVO5BgMz2JwQjkwbdEaPKsvDq6QLopZxMbDDhw mKBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AHMt8JEgwWUOAsfeQ1mCve5Bf6LFvNWBjG81oUaiUm8=; b=OXYmN9xkOFQCaYQp9eMjyk/+BM0JHgb+5KqjvoaELt7T/tVmUAg+FuxxSke7wcBcn/ 5plxJk9h5En0xzseZzPcTpRHAha2Vl8SXFGTADZ2wn+ZdH4wkzKLDKOT6F9n4XsfV0TG ewpbzBTeaO77CUxssDXWiBt8jaIvO/VuBfwMaVcdWVN5lO7hgiV03BiQPnbPOPPdVdnf 5JF0bMv+U1ki7pas6We1PAPSa2NGH9rZRmRNOl2n3+XJCUGAtbRz/02GegPaQ8XE1XmF sM2U7gXA/aYu1zJaZtOtEvzTj7MlYWRYFC2xusx1waQXqFluIH5klpftZ5mm2HcC60p+ J86w== X-Gm-Message-State: AGi0PubAlJUtjsuVOBWA4DXyKiCgfLKcrPusbufbdZkBd1KbPcvKxlTR w39zmACzG7ZG2TXob9jH5D/xAUFVegcOGWXkt9+lZ6a5x3ULhuEgMXPBP/k28Ol7LCKsP4kHa2X zjHoJ+Mn/WK40tC45ILsXXlcTF+ndgqTdD31MDvdFKIIraKJOV25PYb389/EXs8KnO+q/WkqLCL mQlOMPS6h9u7sUL1VmQf6s/IvP52Ig/YFdT+hf3T5qm6nEj3jBT4aE+DNYEXiUe9TNFPU= X-Google-Smtp-Source: APiQypIBUuPcfESoPKOK8lqCOwMH2KdoLz9Q3NeRFCC0cEgitkOLiTaw6TvNX44nePv8Qir0GKg6i118gmVflt8Fo1o= X-Received: by 2002:a2e:988c:: with SMTP id b12mr7278121ljj.138.1585283084100; Thu, 26 Mar 2020 21:24:44 -0700 (PDT) MIME-Version: 1.0 References: <376C920F3015BC43A3485A86670B336C2E1884A3@TW-MBX-P03.cnesnet.ad.cnes.fr> In-Reply-To: <376C920F3015BC43A3485A86670B336C2E1884A3@TW-MBX-P03.cnesnet.ad.cnes.fr> From: Khushboo Vashi Date: Fri, 27 Mar 2020 09:54:36 +0530 Message-ID: Subject: Re: disable create server To: Pavy Manuel Cc: "pgadmin-hackers@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000018ddd905a1ce7bbe" X-CLOUD-SEC-AV-Info: edb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000018ddd905a1ce7bbe Content-Type: text/plain; charset="UTF-8" Hi, On Fri, Mar 27, 2020 at 3:56 AM Pavy Manuel wrote: > Hello, > > I'm new in the pgadmin list. > I try to deploy pgadmin4 on my company but I want to manage the > connections (server in pgadmin) the users can create. > So, I've found the line 84 of > pgadmin/dashboard/templates/dashboard/welcome_dashboard.html to disable the > link : > > > , but I don't find how to disable the context menu in the right of the > dashboard (each try has no impact on the application, perhaps caused by > some cache or something like that). > > Can someone help me please ? Is there any other way to do what I want ? > > I didn't get the idea of stopping users to create servers. If any user has database access (may be limited) then he should be able to create it and manage it as pgAdmin *just connects* the database with the given details in the server dialog. Thanks, Khushboo Thanks, > > Manuel Pavy > > > --00000000000018ddd905a1ce7bbe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Fri, Mar 27, 2020 at 3:56 AM Pavy Manuel <Manuel.Pavy@cnes.fr<= /a>> wrote:
H= ello,

I'm new in the pgadmin list.
I try to deploy pgadmin4 on my company but I want to manage the connections= (server in pgadmin) the users can create.
So, I've found the line 84 of pgadmin/dashboard/templates/dashboard/wel= come_dashboard.html to disable the link :
<a href=3D"#" onclick=3D"pgAdmin.Dashboard.add_new_server= ()">

, but I don't find how to disable the context menu in the right of the = dashboard (each try has no impact on the application, perhaps caused by som= e cache or something like that).

Can someone help me please ? Is there any other way to do what I want ?

I didn't get the idea of stopping users to create= servers. If any user has database access (may be limited) then he should b= e able to create it and manage it as=C2=A0pgAdmin just connects the = database with the given details in the server dialog.

<= div>Thanks,
Khushboo

Thanks,

Manuel Pavy


--00000000000018ddd905a1ce7bbe--