From 58a713e13c61dd4ce0b7f9f81685879353c0b911 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Fri, 22 Feb 2013 20:41:55 -0500 Subject: Allow opstaff to submit location updates for users This allows anyone on opstaff.acl to submit location updates, including flushing all locations, for a user other than themselves. This is the server side of #102 --- server/uloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/uloc.c b/server/uloc.c index 000a7c6..6b26894 100644 --- a/server/uloc.c +++ b/server/uloc.c @@ -168,7 +168,8 @@ ulogin_dispatch(ZNotice_t *notice, return ZERR_NONE; } if (!bdumping && - (!auth || strcmp(notice->z_sender, notice->z_class_inst) != 0)) { + (!auth || strcmp(notice->z_sender, notice->z_class_inst) != 0) && + (!auth || !opstaff_check(notice->z_sender))) { zdbug((LOG_DEBUG,"unauthentic ulogin: %d %s %s", auth, notice->z_sender, notice->z_class_inst)); if (server == me_server) -- cgit v1.2.3