adding an :as option on permission checking