removed access check for drive (has anyway to be at least user)
This commit is contained in:
8
remob.c
8
remob.c
@@ -50,7 +50,6 @@ struct Remob {
|
||||
RemServer *server;
|
||||
int status;
|
||||
Remob *next;
|
||||
int access;
|
||||
int markForDel;
|
||||
};
|
||||
|
||||
@@ -415,13 +414,6 @@ static long RemobRun(void *self, SConnection *pCon, float fNew) {
|
||||
assert(remob);
|
||||
assert(pCon);
|
||||
|
||||
/* check if I'am allowed to drive this object */
|
||||
if (remob->access < SCGetRights(pCon)) {
|
||||
SCPrintf(pCon, eError, "ERROR: You are not authorised to run %s", remob->name);
|
||||
SCSetInterrupt(pCon,eAbortBatch);
|
||||
return 0;
|
||||
}
|
||||
|
||||
remob->status = HWIdle;
|
||||
snprintf(buf, sizeof(buf), "run %s %f", remob->name, fNew);
|
||||
iRet = RemTransact(remserver, pCon, buf, "!ERROR: somebody else", "!ERROR: cannot", ">", NULL);
|
||||
|
||||
Reference in New Issue
Block a user