fix permission to manage public queries not respected
Merge pull request #1967 from 0xF013/feature/15886-permission-to-manage-public-queries-not-respected

fix permission to manage public queries not respected