Skip to content

Commit

Permalink
cleanup issues from PR#2291
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Jan 10, 2024
1 parent 3b63977 commit 72c0a93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/WeBWorK/ContentGenerator/CourseAdmin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use File::Path 'remove_tree';
use Mojo::File;
use File::stat;
use Time::localtime;
use String::ShellQuote;

use WeBWorK::CourseEnvironment;
use WeBWorK::Debug;
Expand Down Expand Up @@ -1289,7 +1288,7 @@ sub do_unarchive_course ($c) {
my $ce_new = WeBWorK::CourseEnvironment->new({ courseName => $new_courseID });
my $db_new = WeBWorK::DB->new($ce_new->{dbLayout});

for my $student_id ($db_new->listPermissionLevelsWhere({ permission => 0 })) {
for my $student_id ($db_new->listPermissionLevelsWhere({ permission => $ce->{userRoles}{student} })) {
$db_new->deleteUser($student_id->[0]);
}

Expand Down

0 comments on commit 72c0a93

Please sign in to comment.