Non-core contributed modules

Sorry, but you do not currently have permissions to do that (View the attendance-chart) + edit the attendance chart

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.7.2
  • Fix Version/s: None
  • Component/s: Add a project here
  • Labels:
    None
  • Environment:
    Windows, WAMP (Appserv 2.4.5)
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_17_STABLE

Description

Teachers cannot edit the attendance chart, regardless of roles I assign to them at module level.

Even if I give them administrator rights on the course and module, they get an error message when trying to edit the attendance chart.

Students cannot view their own entries either.

As site administrator, I can view edit everything.

Activity

Hide
Norbert G Berger added a comment - - edited

Just found the comments Herbert Plass made on http://moodle.org/mod/data/view.php?d=13&rid=811

This works. So who could update the improved version of view.php to the module download, please?

Thanks for your help

Show
Norbert G Berger added a comment - - edited Just found the comments Herbert Plass made on http://moodle.org/mod/data/view.php?d=13&rid=811 This works. So who could update the improved version of view.php to the module download, please? Thanks for your help
Hide
Anthony Borrow added a comment -

Norbert - Would you be kind enough to upload the working view.php file here to the tracker (or a diff file). Then I can review it in context and check in the change. Hopefully we can get the developer of the module to help out with this. Peace - Anthony

Show
Anthony Borrow added a comment - Norbert - Would you be kind enough to upload the working view.php file here to the tracker (or a diff file). Then I can review it in context and check in the change. Hopefully we can get the developer of the module to help out with this. Peace - Anthony
Hide
Anthony Borrow added a comment -

Norbert - It sounds like you were able to get this working for your site; however, I would like to get it fixed in CVS too. Could you upload a copy of the view.php file that you are using so that I can fix it. It will help save me a lot of time. Also, I have contacted the original contributor of the code and asked him (http://moodle.org/user/view.php?id=251849&course=1) to check out this bug report and comment on it. Peace - Anthony

Show
Anthony Borrow added a comment - Norbert - It sounds like you were able to get this working for your site; however, I would like to get it fixed in CVS too. Could you upload a copy of the view.php file that you are using so that I can fix it. It will help save me a lot of time. Also, I have contacted the original contributor of the code and asked him (http://moodle.org/user/view.php?id=251849&course=1) to check out this bug report and comment on it. Peace - Anthony
Hide
Joe Ippolito added a comment -

I am having almost the same issue on an updated installation of 1.92 build 20080711. When logged in as Administrator (and I've changed the role to allow Everything), when I select "Attendance-charts" I am brought to the page that has a week-by-week table. If I select any given week or "Summary Attendance-chart" I am brought to a page with a Red warning block that says "Sorry, but you do not currently have permissions to do that (View the attendance-chart)"

When I select "More information about this error" it brings me to the moodle.org help page that says this is a bug and there isn't a resolution, and suggests I submit a bug-tracker report. So, I searched and found this one that is almost identical.

Thanks for any assistance.

Joe

Show
Joe Ippolito added a comment - I am having almost the same issue on an updated installation of 1.92 build 20080711. When logged in as Administrator (and I've changed the role to allow Everything), when I select "Attendance-charts" I am brought to the page that has a week-by-week table. If I select any given week or "Summary Attendance-chart" I am brought to a page with a Red warning block that says "Sorry, but you do not currently have permissions to do that (View the attendance-chart)" When I select "More information about this error" it brings me to the moodle.org help page that says this is a bug and there isn't a resolution, and suggests I submit a bug-tracker report. So, I searched and found this one that is almost identical. Thanks for any assistance. Joe
Hide
Anthony Borrow added a comment -

Joe - I requested that Norbert upload the fix he used to get this working; however, I do not see that he did so. He may have put it somewhere in the forums so it may be worth checking. I also tried contacting Vladimir ZeD who contributed the code initially but did not hear back from him either. If Norbert reads this perhaps he will provide some insight. I have emailed Vladimir. If we do not get a response, just post back here and I will do my best to take a look at it and see if we can get things fixed up for you. Peace - Anthony

Show
Anthony Borrow added a comment - Joe - I requested that Norbert upload the fix he used to get this working; however, I do not see that he did so. He may have put it somewhere in the forums so it may be worth checking. I also tried contacting Vladimir ZeD who contributed the code initially but did not hear back from him either. If Norbert reads this perhaps he will provide some insight. I have emailed Vladimir. If we do not get a response, just post back here and I will do my best to take a look at it and see if we can get things fixed up for you. Peace - Anthony
Hide
Joe Ippolito added a comment -

Thanks Anthony,

I solved this issue in Moodle 1.92 build 20080711 by using the advice of Herbert Plass from the forum.

In the mod/attendancechart/view.php file, Search out both instances of CONTEXT_COURSE and change them to CONTEXT_MODULE.

That's all... This solved the issue for me. Note that this was a Fantastico upgraded version of Moodle from 1.8x to 1.92 build 20080711.

I hope this helps someone.

Joe

Show
Joe Ippolito added a comment - Thanks Anthony, I solved this issue in Moodle 1.92 build 20080711 by using the advice of Herbert Plass from the forum. In the mod/attendancechart/view.php file, Search out both instances of CONTEXT_COURSE and change them to CONTEXT_MODULE. That's all... This solved the issue for me. Note that this was a Fantastico upgraded version of Moodle from 1.8x to 1.92 build 20080711. I hope this helps someone. Joe
Hide
Anthony Borrow added a comment -

Dmitry - I'm not sure why this was assigned to me but I am going to reassign it to you since you are listed as the component lead for the Attendance module. Peace - Anthony

Show
Anthony Borrow added a comment - Dmitry - I'm not sure why this was assigned to me but I am going to reassign it to you since you are listed as the component lead for the Attendance module. Peace - Anthony
Hide
Dmitry Pupinin added a comment -

Anthony - "Attendance chart" is different module than I develop.

Page of module: http://moodle.org/mod/data/view.php?d=13&rid=811
Maintainer: http://moodle.org/user/view.php?id=251849&course=1

Show
Dmitry Pupinin added a comment - Anthony - "Attendance chart" is different module than I develop. Page of module: http://moodle.org/mod/data/view.php?d=13&rid=811 Maintainer: http://moodle.org/user/view.php?id=251849&course=1
Hide
Dan Marsden added a comment -

assigning back to Anthony and removing component - this is not related to the attendance package,

Show
Dan Marsden added a comment - assigning back to Anthony and removing component - this is not related to the attendance package,
Hide
Dan Marsden added a comment -

heh...take 2 at assigining to AB

Show
Dan Marsden added a comment - heh...take 2 at assigining to AB
Hide
Anthony Borrow added a comment -

Norbert - It seems that you were able to get this resolved for your site. I have made attempts to contact Vladimir ZeD without success. I am going to resolve this as 'Will not fix' since the code is not in CONTRIB there is nothing really I can do. It looks as though Vladimir has moved on so this code likely needs a new maintainer if you wanted to advocate for that in the forums. I'm going to make a note in the M&P entry (http://moodle.org/mod/data/view.php?rid=811&page=538) that it needs a maintainer. Sorry I could not be of more help. Peace - Anthony

Show
Anthony Borrow added a comment - Norbert - It seems that you were able to get this resolved for your site. I have made attempts to contact Vladimir ZeD without success. I am going to resolve this as 'Will not fix' since the code is not in CONTRIB there is nothing really I can do. It looks as though Vladimir has moved on so this code likely needs a new maintainer if you wanted to advocate for that in the forums. I'm going to make a note in the M&P entry (http://moodle.org/mod/data/view.php?rid=811&page=538) that it needs a maintainer. Sorry I could not be of more help. Peace - Anthony
Hide
Anthony Borrow added a comment -

There is no current maintainer for the code. I've posted a comment in the M&P entry if anyone is interested in picking it up. Peace - Anthony

Show
Anthony Borrow added a comment - There is no current maintainer for the code. I've posted a comment in the M&P entry if anyone is interested in picking it up. Peace - Anthony
Hide
Anthony Borrow added a comment -

Closing all of my resolved issues. Peace - Anthony

Show
Anthony Borrow added a comment - Closing all of my resolved issues. Peace - Anthony

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: