Commit 62d10412 authored by Aurel's avatar Aurel

make sure to access assignement for which we have a View permission, otherwise it might fail

parent 14322ab6
......@@ -54,7 +54,7 @@
current_date=DateTime()\n
assignment_list = []\n
for assignment in context.contentValues(portal_type=\'Assignment\'):\n
for assignment in context.contentValues(portal_type=\'Assignment\', checked_permission="View"):\n
if assignment.getValidationState() == \'open\':\n
start_date = assignment.getStartDate()\n
stop_date = assignment.getStopDate()\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment