Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ao6xu-0007Lt-Lo for pgadmin-hackers@arkaria.postgresql.org; Thu, 07 Apr 2016 10:15:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ao6xu-0003FA-84 for pgadmin-hackers@arkaria.postgresql.org; Thu, 07 Apr 2016 10:15:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ao6xt-0003Eu-JE for pgadmin-hackers@postgresql.org; Thu, 07 Apr 2016 10:15:05 +0000 Received: from mail-ig0-x234.google.com ([2607:f8b0:4001:c05::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ao6xm-0006Vm-8r for pgadmin-hackers@postgresql.org; Thu, 07 Apr 2016 10:15:04 +0000 Received: by mail-ig0-x234.google.com with SMTP id kb1so10052564igb.0 for ; Thu, 07 Apr 2016 03:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=gIkM+/XANajxpP4aLt1N8Y7Jz0mGbBjdepg8k/+YYRs=; b=GHkx26G4pUgpO/xjVtySAVUe1+3qgwf6W2ulVfr3noT21JoetAaGYb2bKm/THtLcmu rCOm7XunakHfaZZcJCVsbBf02NDyA8QO+78SDsLExNKVQ6V8EWmMN6kEieug2FSkEmBt moufb6hozYgl/rduLxnvGK2tYcikII3CpUGRME/I1epKz4V/Z9GYTclPqLq6owqjzb0M 3oDDM5YIxT1lv3Ak3VN3Hvla5EDhOcyHRtlBU1DKW9tceta8aLJpR1TBDK3AG0ZtFR8Z H21VhFXZGXwvjojq+HlHyS9pxY7m7xAU28vwUeCuNZ/tVbxyyHF+sDpDkYzZVsKuxjLD AYvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=gIkM+/XANajxpP4aLt1N8Y7Jz0mGbBjdepg8k/+YYRs=; b=WTWx+9e9c5Ctqd3uhLngCT8+O1itCR9ppPGwGL0av0jsCKcoWEsWac8kTrCdXbIbPk y8/cTwZdjONG3cQ+1QUe+hnZ5d4pMBAGQYVMseNxIs8ta9V1ozksBCmxtarRZ2Ju49+5 a1m044EMP3Bc3u50jxh9OkmqVXH3tHBszj/oXy8HYHu3xxeVaPgmGqGRY5dpCvSyV+jf Dy82U4+gQZWavi5OIwRXji/43FWI5aLe/YdoegdwXStW2YFtKTlx8zbYIIBNem9xhYsE ZVQiiG7z+sgQwT0dKn4BYDIImeblmngMBMFD5JDksAXikmsYvhTcZKaX19GxWQTbwku9 G8Fg== X-Gm-Message-State: AD7BkJInAYJx5rCyXt/LjIqhRvIPAbr4CA8k1sO9GP4JL0UZ+nxPxL0g3CMKYQD4Qk4JahFopwlT8PaHMAhlkA== MIME-Version: 1.0 X-Received: by 10.50.138.5 with SMTP id qm5mr2522278igb.69.1460024096874; Thu, 07 Apr 2016 03:14:56 -0700 (PDT) Received: by 10.64.105.131 with HTTP; Thu, 7 Apr 2016 03:14:56 -0700 (PDT) In-Reply-To: References: Date: Thu, 7 Apr 2016 11:14:56 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch] - Disable PrivilegeControl for nodes visible under catalog From: Dave Page To: Surinder Kumar Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Thu, Apr 7, 2016 at 8:45 AM, Surinder Kumar wrote: > Hi, > > PFA minor patch for PrivilegeRoleModel > > Change: Add check to disable PrivilegeRoleModel fields for nodes visible > under catalog. > > Please review the patch. I'm unclear what this is supposed to do: - Those fields already seem to be disabled under catalog nodes (though - the Add button on subnode grids is still active, but doesn't do anything) - Shouldn't we just hide privilege info on those nodes directly? Why break modularity for this? - I'm seeing weird effects after applying this patch - see the attached screenshot. However, that issue remains even after I remove it again (and restart the server, and hard-reload). It does seem to fix itself eventually, but I'm not sure what causes that. If I try to refresh the Functions node, I get: jquery.contextMenu.js:309 No items specified to show in contextMenuhandle.contextmenu @ jquery.contextMenu.js:309jQuery.event.dispatch @ jquery-1.11.2.js:4665elemData.handle @ jquery-1.11.2.js:4333 jquery.contextMenu.js:312 Uncaught Error: No Items specifiedhandle.contextmenu @ jquery.contextMenu.js:312jQuery.event.dispatch @ jquery-1.11.2.js:4665elemData.handle @ jquery-1.11.2.js:4333 -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers