qbuilder does not work with this code enabled...
Fix buggy js
Fix buggy js
Fix permission checking