<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_perm(self, username, perm, path=None):
 """check user permission """

        account = self.get_account(username)
        return account and account.has_perm(perm, path)