summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/uloc.c7
1 files 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) {