From 5259ff49edaec5315aa3379e361d95e152448159 Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" Date: Mon, 30 Dec 2002 22:24:33 +0000 Subject: [PATCH] Minor addition to last revision; check webonly status as well, since do not want to do any group stuff for webonly accounts. --- tbsetup/setgroups.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tbsetup/setgroups.in b/tbsetup/setgroups.in index 9a198bb4e..6bc7e6c2e 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"; -- GitLab