Add has_perm and has_perms