Commit 5259ff49 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor addition to last revision; check webonly status as well, since

do not want to do any group stuff for webonly accounts.
parent a0e09afc
......@@ -243,8 +243,9 @@ foreach my $uid (@userlist) {
# and this is called from the editgroups web page.
$query_result =
DBQueryFatal("select status from users where uid='$uid' ".
"and status='" . USERSTATUS_ACTIVE . "'");
DBQueryFatal("select status from users ".
"where uid='$uid' and webonly=0 ".
" and status='" . USERSTATUS_ACTIVE . "'");
if (!$query_result->numrows) {
print "Skipping $uid; not in any groups!\n";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment