8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:43:03 +01:00

Fixed #6963: grant references not working

(cherry picked from commit ddca654a13)
This commit is contained in:
AlexPeshkoff 2021-11-12 19:44:26 +03:00
parent 562de6f7f2
commit 4708bbf4a7

View File

@ -3717,7 +3717,7 @@ void VIO_store(thread_db* tdbb, record_param* rpb, jrd_tra* transaction)
EVL_field(0, rpb->rpb_record, f_trg_rname, &desc);
// check if this request go through without checking permissions
if (!(request->getStatement()->flags & JrdStatement::FLAG_IGNORE_PERM))
if (!(request->getStatement()->flags & (JrdStatement::FLAG_IGNORE_PERM | JrdStatement::FLAG_INTERNAL)))
SCL_check_relation(tdbb, &desc, SCL_control | SCL_alter);
if (EVL_field(0, rpb->rpb_record, f_trg_rname, &desc2))