<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_permission(self, service, func):
 """ Build permission required to access function "func" """

        if self.permission:
            perm = self.permission

        elif self.prefix is False:
            # No permission will be checked
            perm = False

        elif self.prefix:
            perm = build_permission_name(service.model_class, self.prefix)

        else:
            name = func.__name__
            # check if there is a translation between default permission and method name
            action_name = METHOD_PERMISSION_TRANSLATION.get(name, name)

            perm = build_permission_name(service.model_class, action_name)
        return perm