diff --git a/tbsetup/setgroups.in b/tbsetup/setgroups.in index 9a198bb4ec36618b7991d356a43e290b2b8d95dd..6bc7e6c2e3d48f21a1801ff2efa1d1f3caeedc8a 100755 --- a/tbsetup/setgroups.in +++ b/tbsetup/setgroups.in @@ -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";