Make SEND managers only

r2288 | dcl | 2008-01-21 09:56:27 +1100 (Mon, 21 Jan 2008) | 2 lines
This commit is contained in:
Douglas Clowes
2008-01-21 09:56:27 +11:00
parent 7fffc9f97a
commit c6ce627760
2 changed files with 6 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;