I have recently started receiving the following error when clicking on the button to add a grade to a submitted assignment:
Forbidden
You don't have permission to access /mod/assign/view.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
As far as I know no major changes took place prior to this error occurring. I have updated the moodle from the previous version (I believe 2.4) to the latest version hoping that would solve the issue. I have also made sure that the permission setting had not changed for the file to give that error.
I also get a similar error when trying to switch roles:
Forbidden
You don't have permission to access /course/switchrole.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I'm not sure if there are any similar errors anywhere else, none have cropped up so far. I have full backup of files and of the database if I need to go back to the previous version before being able to fix the error.