removed access check for drive (has anyway to be at least user)

This commit is contained in:
zolliker
2005-09-07 14:54:20 +00:00
parent c0d84f16d9
commit 771b4e6ef1

View File

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