diff --git a/sql/query_privileges.py b/sql/query_privileges.py index 937c90b53d..ef0b698b05 100644 --- a/sql/query_privileges.py +++ b/sql/query_privileges.py @@ -493,7 +493,7 @@ def _db_priv(user, instance, db_name): user_privileges = QueryPrivileges.objects.filter( user_name=user.username, instance=instance, - db_name=str(db_name), + db_name__in=[str(db_name), str("*")], valid_date__gte=datetime.datetime.now(), is_deleted=0, priv_type=1,