ffr stupid hack

This commit is contained in:
Douglas Clowes
2012-11-29 10:30:51 +11:00
parent a7a27ff408
commit 06eba7ce4b

View File

@@ -1185,7 +1185,7 @@ int HistAction(SConnection * pCon, SicsInterp * pSics, void *pData,
/* do it */
Arg2Text(argc - 3, &argv[3], pBueffel, 511);
/* authorise */
if (!SCMatchRights(pCon, usMugger)) {
if (!SCMatchRights(pCon, usUser)) { /* FIXME ffr stupid hack */
snprintf(pBueffel,sizeof(pBueffel)-1,
"ERROR: you need to be manager in order to configure %s",
argv[0]);
@@ -1275,7 +1275,7 @@ int HistAction(SConnection * pCon, SicsInterp * pSics, void *pData,
SCWrite(pCon, "ERROR: cannot initialize HM while running", eError);
return 0;
}
if (SCMatchRights(pCon, usMugger)) {
if (SCMatchRights(pCon, usUser)) { /* FIXME ffr stupid hack */
iRet = HistConfigure(self, pCon, pSics);
if (iRet) {
self->iInit = 1;