app/soc/views/helper/access.py
changeset 1558 5ff25327371e
parent 1557 9e32e6258319
child 1559 283046e54c01
equal deleted inserted replaced
1557:9e32e6258319 1558:5ff25327371e
   730     self._checkHasActiveRoleFor(django_args, logic, 'link_id')
   730     self._checkHasActiveRoleFor(django_args, logic, 'link_id')
   731 
   731 
   732   def checkHasActiveRoleForLinkIdAsScope(self, django_args, logic):
   732   def checkHasActiveRoleForLinkIdAsScope(self, django_args, logic):
   733     """Checks that the user has the specified active role.
   733     """Checks that the user has the specified active role.
   734 
   734 
   735     Only roles where the link_id matches the link_id from the
   735     Only roles where the scope_path matches the link_id from the
   736     django_args are considered.
   736     django_args are considered.
   737     """
   737     """
   738 
   738 
   739     django_args = django_args.copy()
   739     django_args = django_args.copy()
   740     django_args['scope_path'] = django_args['link_id']
   740     django_args['scope_path'] = django_args['link_id']