WeBWorK Main Forum

Upgrade to 2.18, stuck at admin course

Re: Upgrade to 2.18, stuck at admin course

by Bernd Sing -
Number of replies: 1

Looking at the addadmin script, creating my own script with 

$db->putPermissionLevel($db->newPermissionLevel(user_id=>"admin", permission=>"20"));

exit;

and using wwsh to apply it on the admin course (see https://webwork.maa.org/moodle/mod/forum/discuss.php?d=6642#p17935) did the trick and resolved the issue -- yeah!
Not sure why the permission level changed in the first place, though.

In reply to Bernd Sing

Re: Upgrade to 2.18, stuck at admin course

by Charles Fulton -

I appreciate the pointer Bernd, as I encountered the same scenario on the 2.17->2.18 upgrade. Every user, including the admin, had permission level "10" in the admin_permission table. I changed it to 20 for the appropriate users and regained access.

Charles