app/soc/views/helper/access.py
changeset 1554 163c879d1ffe
parent 1538 b1ab0ec9c950
child 1555 cba45797f4b9
equal deleted inserted replaced
1553:451c804c6aab 1554:163c879d1ffe
   695 
   695 
   696     Only roles where the field as specified by field_name matches the
   696     Only roles where the field as specified by field_name matches the
   697     scope_path from the django_args are considered.
   697     scope_path from the django_args are considered.
   698     """
   698     """
   699 
   699 
   700     fields = ['scope_path', 'user']
   700     fields = [field_name, 'user']
   701     django_args['user'] = self.user
   701     django_args['user'] = self.user
   702     self._checkIsActive(django_args, logic, fields)
   702     self._checkIsActive(django_args, logic, fields)
   703 
   703 
   704   def checkHasActiveRoleForKeyFieldsAsScope(self, django_args, logic):
   704   def checkHasActiveRoleForKeyFieldsAsScope(self, django_args, logic):
   705     """
   705     """