equal
deleted
inserted
replaced
724 """Checks that the user has the specified active role. |
724 """Checks that the user has the specified active role. |
725 |
725 |
726 Only roles where the link_id matches the link_id from the |
726 Only roles where the link_id matches the link_id from the |
727 django_args are considered. |
727 django_args are considered. |
728 """ |
728 """ |
|
729 |
729 self._checkHasActiveRoleFor(django_args, logic, 'link_id') |
730 self._checkHasActiveRoleFor(django_args, logic, 'link_id') |
|
731 |
|
732 def checkHasActiveRoleForLinkIdAsScope(self, django_args, logic): |
|
733 """Checks that the user has the specified active role. |
|
734 |
|
735 Only roles where the link_id matches the link_id from the |
|
736 django_args are considered. |
|
737 """ |
|
738 |
|
739 django_args = django_args.copy() |
|
740 django_args['scope_path'] = django_args['link_id'] |
|
741 self._checkHasActiveRoleFor(django_args, logic, 'scope_path') |
730 |
742 |
731 def checkHasDocumentAccess(self, django_args, logic, target_scope): |
743 def checkHasDocumentAccess(self, django_args, logic, target_scope): |
732 """Checks that the user has access to the specified document scope. |
744 """Checks that the user has access to the specified document scope. |
733 """ |
745 """ |
734 |
746 |