<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_moderator_permissions(self, request):
 """ Find if user have global or per object permission firstly on category instance, if not then on thread instance """

        return any(request.user.has_perm(perm) for perm in self.permission_required)