<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_a_matching_perm(self, perm_list, obj=None):
 """Returns True if the user has one of the specified permissions. If object is passed, it checks if the user has any of the required perms for this object. """

        # If there are no permissions to check, just return true
        if not perm_list:
            return True
        # Check that user has at least one of the required permissions.
        for perm in perm_list:
            if self.has_perm(perm, obj):
                return True
        return False