*renamed method getPermission to allow.