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 1jHmKC-0003Bb-2d for pgadmin-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 10:34:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHmKA-00033h-QK for pgadmin-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 10:34:50 +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 1jHmKA-00033a-Bh for pgadmin-hackers@lists.postgresql.org; Fri, 27 Mar 2020 10:34:50 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jHmK7-0004ce-OP for pgadmin-hackers@lists.postgresql.org; Fri, 27 Mar 2020 10:34:49 +0000 Received: by mail-ot1-x341.google.com with SMTP id f52so9175636otf.8 for ; Fri, 27 Mar 2020 03:34:47 -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=jZ+Zzmev3x1MCY6VgrgVnb/U9JzaA4r51Xh9JzZa9/8=; b=yJL91ALax5AJVjmfW5BDV7o/U84cS/GLK0GXUsk9kQfX/D+esC6h0aRlY9uW7Ah8rt H+1zW32Ag9ZT/GmE2Ocb4MsQJB90F+uQaV/iI8wAigSoIkvAJ5VilpLnuvzs+jUvCTwV el3btrolsHIvWfD36axKQ8Mq7xE7JIb4IIvGydy+YJn7//AtrGn5/lRjc9OHp+S5hsLZ bYAKCFEFEuURwnALJd13J4ClbNVAxaZsFXizF82ot5+u8mECrhTfui3VXPlCN2Z7M5Ue rf/RHFkTJDBfatO+VQywknpG275VULVnRVO2LVq12oOF2m8oV4vp0EJmK6naXe4xdtio E+ZQ== 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=jZ+Zzmev3x1MCY6VgrgVnb/U9JzaA4r51Xh9JzZa9/8=; b=ryw57NvRrPI8MOeU66IxtawwEuoSB6WDyhvJZhV6e9VlNg9kaE4kE8zUpnay5U/RrR seauKsWyvOcxT0mRP6hcU+ic9h2ooJTTvCt1hQNCzr7UcQHHH1BgGgTre46AwbGjMMi3 l6+XBkEVae8NI0gdLqk1vneQLRz9qnCjtPBHObfUUmd7cg8WfnnL/ghBQrQJTS2f4LYh 9WO5/cBsg3ljA5f8Nh6HTb+LZoCYyVQ1IfTncxdTXTvaZoSzyae2euUEtWKcMSxlylh/ bpbWMS8BxbuXvByV15W32XYxQwjetJgRX0eEYUqO9lcFNUjeE3DRV3M7qznq7Ac09ABF tD/Q== X-Gm-Message-State: ANhLgQ29kXXe5aaOImFoAX5dWmJeeZ3X4/6voaYYsXwWG8SH6XscwZkW egqf5nsQVy469Yu3gzgAGGJ/kyEWYuK+QOWYaDA6I7PAy8qHemPIC49z6qwxJPVfhtXt3/pVuBv oMR44m2aF+6Nc5nV2JxVwg/jTFgRofqnrMOXYUILQwX1CzImr3xtfzAwGlCyYXRz53TBss081Gu Ik5iWP8qKev3Nk1v0+KpjrNpqx3SAy+dXz1ugzyV4lH+u50T1aBNjoK335hd8UOHZ69bo= X-Google-Smtp-Source: ADFU+vvsz1W2MRK9IkacpofbL8z5x+D08oTdr4rJNwrdk6cznrSa3hZU/Kb6LhxauhrarWGU8jn2cQT6NvgslTWun6c= X-Received: by 2002:a9d:7a8:: with SMTP id 37mr10236981oto.209.1585305285653; Fri, 27 Mar 2020 03:34:45 -0700 (PDT) MIME-Version: 1.0 References: <376C920F3015BC43A3485A86670B336C2E1884A3@TW-MBX-P03.cnesnet.ad.cnes.fr> In-Reply-To: From: Ashesh Vashi Date: Fri, 27 Mar 2020 16:04:01 +0530 Message-ID: Subject: Re: disable create server To: Dave Page Cc: Khushboo Vashi , Pavy Manuel , "pgadmin-hackers@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000698e0605a1d3a62d" 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 --000000000000698e0605a1d3a62d Content-Type: text/plain; charset="UTF-8" On Fri, Mar 27, 2020 at 4:01 PM Dave Page wrote: > > > On Fri, Mar 27, 2020 at 4:24 AM Khushboo Vashi < > khushboo.vashi@enterprisedb.com> wrote: > >> 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 : >>> >>> >> pgAdmin saves server list per user. You may need to keep that in mind. > >>> , 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. >> > > It seems like a reasonable request to me - for example, to stop students > adding random servers to a shared instance of pgAdmin that they're only > supposed to be using for coursework. > Agreed. -- Thanks, Ashesh > > -- > Dave Page > Blog: http://pgsnake.blogspot.com > Twitter: @pgsnake > > EnterpriseDB UK: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > --000000000000698e0605a1d3a62d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Mar 27, 2020 at 4:= 24 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
=
Hi,=

= On Fri, Mar 27, 2020 at 3:56 AM Pavy Manuel <Manuel.Pavy@cnes.fr> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">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/wel= come_dashboard.html to disable the link :
<a href=3D"#" onclick=3D"pgAdmin.Dashboard.add_new_server= ()">
pgAdmin saves server list per user.
You may need to keep= that in mind.=C2=A0

, 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.

It seems like a reasonable request to me - for= example, to stop students adding random servers to a shared instance of pg= Admin that they're only supposed to be using for coursework.
Agreed.

-- Thanks, Ashesh=
=C2=A0
=C2=A0
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--000000000000698e0605a1d3a62d--