def is_account_admin(self, req, account):
req.credentials_valid = False<EOL>if self.is_super_admin(req):<EOL><INDENT>return True<EOL><DEDENT>admin_detail = self.get_admin_detail(req)<EOL>if admin_detail:<EOL><INDENT>if self.is_reseller_admin(req, admin_detail=admin_detail):<EOL><INDENT>return True<EOL><DEDENT>if not self.credentials_match(admin_detail,<EOL>req.headers.get('<STR_LIT>')):<EOL><INDENT>return False<EOL><DEDENT>req.credentials_valid = True<EOL>return admin_detail and admin_detail['<STR_LIT>'] == account and'<STR_LIT>' in (g['<STR_LIT:name>'] for g in admin_detail['<STR_LIT>'])<EOL><DEDENT>return False<EOL>
Returns True if the admin specified in the request represents a .admin
        for the account specified.

        :param req: The swob.Request to check.
        :param account: The account to check for .admin against.
        :param returns: True if .admin.