mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-27 05:37:46 -05:00
privileges. Also, made a change in the privilege.js to scroll the div to make the opening div visible properly.
11 lines
476 B
Plaintext
11 lines
476 B
Plaintext
{% macro APPLY(conn, type, role, param, priv, with_grant) -%}
|
|
{% if priv %}
|
|
GRANT {{ priv }} ON {{ type }} {{ conn|qtIdent(param) }} TO {{ conn|qtIdent(role) }};
|
|
{% endif %}
|
|
{% if with_grant %}
|
|
GRANT {{ with_grant }} ON {{ type }} {{ conn|qtIdent(param) }} TO {{ conn|qtIdent(role) }} WITH GRANT OPTION;
|
|
{% endif %}
|
|
{%- endmacro %}
|
|
{% macro RESETALL(conn, type, role, param) -%}
|
|
REVOKE ALL ON {{ type }} {{ conn|qtIdent(param) }} FROM {{ conn|qtIdent(role) }};
|
|
{%- endmacro %} |