diff --git a/asyncqueue.c b/asyncqueue.c index d592e2f5..bf418386 100644 --- a/asyncqueue.c +++ b/asyncqueue.c @@ -615,6 +615,9 @@ int AsyncQueueAction(SConnection *pCon, SicsInterp *pSics, int idx = 0; int i, j, len; cmd[0] = '\0'; + /* Managers only */ + if (!SCMatchRights(pCon, usMugger)) + return 0; for (i = 2; i < argc; ++i) { if (idx >= 10240) break; diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index 20722205..f4913d44 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -3547,6 +3547,9 @@ int DMC2280Action(SConnection *pCon, SicsInterp *pSics, void *pData, char rsp[CMDLEN]; int idx = 0; int i; + /* Managers only */ + if (!SCMatchRights(pCon, usMugger)) + return 0; cmd[0] = '\0'; for (i = 2; i < argc; ++i) { int j, k;