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