improve permission handling in views