From: | Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | pgAdmin 4 commit: Make the privilege control to work as expected. Using |
Date: | 2016-01-15 13:52:47 |
Message-ID: | E1aK4o3-0000pn-Ba@gothos.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Make the privilege control to work as expected. Using the
NodeListByNameCell for selecting the grantee.
This patch includes:
- Change the RolePrivilegesModel schema to allow to use the
NodeListByNameCell for showing grantee, and granter information.
- When setting some value - do not use the silent flag in Select2Cell, which
will allow the session manager to take the value in account, which is
used by the NodeListByNameCell.
- Set the top object in the children of the UniqueControl collections.
[Ashesh Vashi]
- Pass on the node information to the actual data model, so that - we can use
node information by the control itself. [Ashesh Vashi]
- While adding the new privilege, set the granter to the current user.
[Ashesh Vashi]
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=4e5e7755b5705fd49b6a7f70bed216bde119450e
Author: Harshal Dhumal <harshal(dot)dhumal(at)enterprisedb(dot)com>
Modified Files
--------------
.../browser/server_groups/servers/__init__.py | 3 +-
.../server_groups/servers/static/js/privilege.js | 54 +++++++++++++++++-----
web/pgadmin/browser/templates/browser/js/node.js | 7 ++-
web/pgadmin/static/js/backform.pgadmin.js | 13 ++++--
web/pgadmin/static/js/backgrid/backgrid.pgadmin.js | 2 +-
5 files changed, 60 insertions(+), 19 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Ashesh Vashi | 2016-01-15 13:56:45 | pgAdmin 4 commit: Use the same schema parameter 'visible' instead of se |
Previous Message | Björn Harrtell | 2016-01-15 13:12:29 | Re: ]GTK 3 |