code: def get_all_permissions(self):
          
          perms = set()
          for role in self.get_user_roles():
              for perm_view in role.permissions:
                  t = (perm_view.permission.name, perm_view.view_menu.name)
                  perms.add(t)
          return perms
docs: Returns a set of tuples with the perm name and view menu name