docs: def permissions(self):
          """Return a set with all permissions granted to the user."""
          perms = set()
          for r in self.roles:
              perms = perms | set(r.permissions)
          return perms