MBH: updating get permissions query