You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce: add a user to a course with a permission level that is not defined in the %userRoles hash for that course.
If you visit the Accounts Manager you get the error "maketext requires at least one parameter at /opt/webwork/webwork2/lib/Mojolicious/WeBWorK.pm line 110."
The way I came across this is that I had a course with a new role defined in course.conf, and I created a new course and copied instructors from that course. Now I have a new course with a user with permission level 11, but the new course doesn't have a role associated with that permission level.
The other way this could occur is if you archive a course on a server with custom roles defined, and then unarchive it on a server that is missing those custom roles.
If there is no entry in the hash associated with the permission level then you end up passing nothing to maketext.
The text was updated successfully, but these errors were encountered:
dlglin
changed the title
Accounts Manager breaks if a user has a permission lever that is not defined in %userRoles
Accounts Manager breaks if a user has a permission level that is not defined in %userRoles
Nov 19, 2024
the active %userRoles hash. Will prevent Accounts Manager from failing.
See openwebwork#2625
but when editing a user with such a value, will only allow chosing
a defined level.
the active %userRoles hash. Will prevent Accounts Manager from failing.
See openwebwork#2625
but when editing a user with such a value, will only allow choosing
a defined level.
the active %userRoles hash. Will prevent Accounts Manager from failing.
See openwebwork#2625
but when editing a user with such a value, will only allow choosing
a defined level.
To reproduce: add a user to a course with a permission level that is not defined in the
%userRoles
hash for that course.If you visit the Accounts Manager you get the error "maketext requires at least one parameter at /opt/webwork/webwork2/lib/Mojolicious/WeBWorK.pm line 110."
The way I came across this is that I had a course with a new role defined in course.conf, and I created a new course and copied instructors from that course. Now I have a new course with a user with permission level 11, but the new course doesn't have a role associated with that permission level.
The other way this could occur is if you archive a course on a server with custom roles defined, and then unarchive it on a server that is missing those custom roles.
The issue appears to be at
webwork2/templates/ContentGenerator/Instructor/UserList/user_list_field.html.ep
Line 54 in df4b848
If there is no entry in the hash associated with the permission level then you end up passing nothing to
maketext
.The text was updated successfully, but these errors were encountered: