Security Label and ACL template macros:
Way to use in template:
1) Security labels:
SECLABLE.SET(conn, object_type, object_name, provider, security_label,
object.schema)
SECLABLE.UNSET(conn, object_type, object_name, provider, object.schema)
2) Privileges:
PRIVILEGE.SET(conn, object_type, grantee, object_name,
privileges_without_grant, privileges_with_grant,
object.schema)
PRIVILEGE.UNSETALL(conn, object_type, grantee, object_name, schema)
privileges_without_grant = comma separated string of privileges.
privileges_with_grant = comma separated string of privileges.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=d2e372114b538067956aa06ca8d7bba27e9bac11
Author: Harshal Dhumal <harshal.dhumal@enterprisedb.com>
Modified Files
--------------
.../schemas/templates/macros/schemas/privilege.macros | 14 ++++++++++++++
.../schemas/templates/macros/schemas/security.macros | 9 +++++++++
2 files changed, 23 insertions(+)