DW: Used all() function to check for permissions and used an ordered list when comparing