----- "Paul Gödicke" <[EMAIL PROTECTED]> wrote:
> I've following problem: For using EC-Quiz inside a workgroup I created
> a new review-state which permits only the members of this workgroup to
> enter EC-Quiz. The problem coming out is that EC-Quiz is telling all
> the workgroup-members (only when the new review-state is enabled): "
> Sie haben diesen Test bereits absolviert. Sie dürfen ihn nicht noch
> einmal einreichen." What I have to change to permit within the new
> review-state responding to the questions?
>
> Thanks
>
> Paul
> _______________________________________________
> eduComponents mailing list
> [email protected]
> https://listserv.uni-magdeburg.de/mailman/listinfo/educomponents
Paul-
I believe the code below in ECQuiz.py is causing the problem (your line numbers
may be different as mine is a modified version).
I would create a new method like userIsReviewer() to check for the permission
you assign to the reviewers in your new workflow state and just call it in an
elif here below the check for userIsGrader() and you should be OK.
568 security.declareProtected(PERMISSION_STUDENT, 'mayResubmit')
569 def mayResubmit(self):
570 user = getSecurityManager().getUser()
571 candidateId = user.getId()
572
573 if self.userIsGrader(user):
574 return True
575 elif self.isPublic():
576 if self.isAllowRepetition():
577 return True
578 else:
579 return not self.hasSubmitted(candidateId)
580 else:
581 return False
Jim
_______________________________________________
eduComponents mailing list
[email protected]
https://listserv.uni-magdeburg.de/mailman/listinfo/educomponents