-
Bug
-
Resolution: Fixed
-
Minor
-
4.0 regressions, 4.3.4, 4.4
When users do not have the permission to grade assignments, it would make sense then for the grade button to not exist.
This would benefit use cases where non-students still need to be able to view grades, but not edit them.
Replication Steps
- Ensure a non student role, such as non editing teacher, does not have the permission mod/assign:grade
- (optional) create an assignment, ignore if there is one you can test with already
- Log in as a non editing teacher
- Go to the assignment
Observed: The button exists and when clicked, you are taken to a nopermission error
Suggested: The button should not exist if you do not have the permission to go to that page.
nopermissions
|
Sorry, but you do not currently have permissions to do that (Grade assignment).
|
File: /lib/accesslib.php
|
Line: 875
|
Stack trace:
|
|
Error code: nopermissions
|
* line 875 of /lib/accesslib.php: core\exception\required_capability_exception thrown
|
* line 4022 of /mod/assign/locallib.php: call to require_capability()
|
* line 679 of /mod/assign/locallib.php: call to assign->view_single_grading_panel()
|
* line 1437 of /mod/assign/lib.php: call to assign->view()
|
* line 7492 of /lib/moodlelib.php: call to mod_assign_output_fragment_gradingpanel()
|
* line 415 of /lib/external/externallib.php: call to component_callback()
|
* line ? of unknownfile: call to core_external::get_fragment()
|
* line 253 of /lib/external/classes/external_api.php: call to call_user_func_array()
|
* line 83 of /lib/ajax/service.php: call to core_external\external_api::call_external_function()
|
- is a regression caused by
-
MDL-71912 Implement tertiary navigation for plugin set 1 of 4
- Closed