mirror of https://github.com/citusdata/citus.git
EnsureCoordinator() for GRANT on TABLE propagation
In the table/table(attribute) cases, we didn't checked if the command was run from the Coordinator. Add the check where suggested by @naisila in https://github.com/citusdata/citus/pull/7918#pullrequestreview-2702649595pull/7918/head
parent
36c2c1634e
commit
880f91a3b6
|
@ -70,6 +70,8 @@ PreprocessGrantStmt(Node *node, const char *queryString,
|
||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EnsureCoordinator();
|
||||||
|
|
||||||
/* deparse the privileges */
|
/* deparse the privileges */
|
||||||
if (grantStmt->privileges == NIL)
|
if (grantStmt->privileges == NIL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue