From d2b1791a3b05d3ed0b03dcb87c6ea729a99f0ceb Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Thu, 21 Feb 2013 23:07:36 -0500 Subject: Make OPSTAFF_VIS actually visible to opstaff This fixes #101 --- server/uloc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/uloc.c b/server/uloc.c index a85df05..000a7c6 100644 --- a/server/uloc.c +++ b/server/uloc.c @@ -848,6 +848,7 @@ ulogin_marshal_locs(ZNotice_t *notice, int i = 0; String *inst; int local = (auth && realm_sender_in_realm(ZGetRealm(), notice->z_sender)); + int opstaff = (auth && opstaff_check(notice->z_sender)); *found = 0; /* # of matches */ @@ -862,8 +863,10 @@ ulogin_marshal_locs(ZNotice_t *notice, /* these locations match */ switch (locations[i].exposure) { case OPSTAFF_VIS: - i++; - continue; + if (!opstaff) { + i++; + continue; + } case REALM_VIS: case REALM_ANN: if (!local) { -- cgit v1.2.3