renamed permission allowed method for consistency with security module