Make SEND managers only
r2288 | dcl | 2008-01-21 09:56:27 +1100 (Mon, 21 Jan 2008) | 2 lines
This commit is contained in:
@@ -615,6 +615,9 @@ int AsyncQueueAction(SConnection *pCon, SicsInterp *pSics,
|
|||||||
int idx = 0;
|
int idx = 0;
|
||||||
int i, j, len;
|
int i, j, len;
|
||||||
cmd[0] = '\0';
|
cmd[0] = '\0';
|
||||||
|
/* Managers only */
|
||||||
|
if (!SCMatchRights(pCon, usMugger))
|
||||||
|
return 0;
|
||||||
for (i = 2; i < argc; ++i) {
|
for (i = 2; i < argc; ++i) {
|
||||||
if (idx >= 10240)
|
if (idx >= 10240)
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -3547,6 +3547,9 @@ int DMC2280Action(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|||||||
char rsp[CMDLEN];
|
char rsp[CMDLEN];
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
int i;
|
int i;
|
||||||
|
/* Managers only */
|
||||||
|
if (!SCMatchRights(pCon, usMugger))
|
||||||
|
return 0;
|
||||||
cmd[0] = '\0';
|
cmd[0] = '\0';
|
||||||
for (i = 2; i < argc; ++i) {
|
for (i = 2; i < argc; ++i) {
|
||||||
int j, k;
|
int j, k;
|
||||||
|
|||||||
Reference in New Issue
Block a user