Attendance module not working with 'Available for group members only'

Attendance module not working with 'Available for group members only'

by rainy season -
Number of replies: 9

I am using attendance module 2.3 on moodle 2.3. I have also used attendance module 2.0 on moodle 2.2.1 but the same problem exists in both versions.

I have a problem that I created a course which will be given to different 
groups/classes. Each group has a different non-editing teacher. The 
problem is when anyone of the teachers take the attendance, he will be 
able to take attendance for all three groups. The teacher can choose his 
group and he is able to take others aswell. Actually every teacher can 
access of his groups only on the attendance sheet.


I have enabled a link "Available for group members only" which is 
available in
Site administration>Development>Experimental>Experimental settings.

I have created different groupings and place each group in one grouping.

Another problem is that in Attendance activity Show advanced button in 
Group mode is not available/visible. Therefore I can't select the box of 
Available for group members only.

Anyone can help in doing that please.

(Edited by Helen Foster to give the discussion topic a more descriptive title as advised in the code of conduct - original submission Thursday, 30 August 2012, 1:06 PM)

Average of ratings: -
In reply to rainy season

Re: Attendance module not working with 'Available for group members only'

by Artem Andreev -

Attendance activity supports different sessions for different groups internally. Also teachers should view only common sessions (if it is enabled) and sessions from available groups. So groupings feature programatically disabled for attendance activity.

But seems as at this moment exists bug in restricting access to group-based sessions. I partially fixed it. And I hope that tomorrow I will finish the work on this bug.

In reply to Artem Andreev

Re: Attendance module not working with 'Available for group members only'

by rainy season -

Thanks Artem Andreev for your efforts. Please let me know if you find any solution.

In reply to rainy season

Re: Attendance module not working with 'Available for group members only'

by Artem Andreev -

I fixed issue.

In reply to Artem Andreev

Re: Attendance module not working with 'Available for group members only'

by rainy season -

Thanks Andreev. Please tell me how did you fix it and how can I do it in my system. Thanks again

In reply to rainy season

Re: Attendance module not working with 'Available for group members only'

by Artem Andreev -

You can download latest version for Moodle 2.3 and install it on your server.

You can add attendance module with Separate group mode. Then you can create group sessions and non-editing teachers (users without 'moodle/site:accessallgroups' capability and with 'mod/attforblock:takeattendances' capability) could view and take attendance only for sessions for groups to which they are belong.

In reply to Artem Andreev

Re: Attendance module not working with 'Available for group members only'

by Andrew Cram -

Thanks Artem - will this fix work with Moodle 2.2?

In reply to Andrew Cram

Re: Attendance module not working with 'Available for group members only'

by Artem Andreev -

I've done this fix for Moodle 2.3. But I can apply fix for Moodle 2.2 at the end of week.

In reply to Artem Andreev

Re: Attendance module not working with 'Available for group members only'

by Andrew Cram -

Thanks for the quick response - a fix for 2.2 would be fantastic.