'Determine whether processing/displaying the column is allowed.
It is determined based on the current request.'

def allowed(self, request):

    if (not self.policy_rules):
        return True
    policy_check = getattr(settings, 'POLICY_CHECK_FUNCTION', None)
    if policy_check:
        return policy_check(self.policy_rules, request)
    return True
