diff options
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index ba00c1d3fa7..25f26938e84 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -3317,7 +3317,7 @@ bool check_grant(THD *thd, ulong want_access, TABLE_LIST *tables, { GRANT_TABLE *grant_table; if (!(~table->grant.privilege & want_access) || - table->derived || table->schema_table) + table->derived || table->schema_table || table->belong_to_view) { /* It is subquery in the FROM clause. VIEW set table->derived after |