Home Home

HasPermission

HasPermission is use to check the locally cached permissions list, the api will monitor for changes to this list in real-time.
bool HasPermission(
   unsigned int methodID
);

Parameters

methodID The method ID to be tested.

Return Values

returns true if the current connected user has permission to execute the given method, false otherwise.

Remarks

Example Use

int param[] = {8,0};//will get current logon user's details
if(server.HasPermission(GET_ENTITY_DETILS)){
   if(server.RemoteMethod(GET_ENTITY_DETAILS,1,0,0,callback,this,param))
      MessageBox("Unable to call remote method");
}

Also See

RemoteMethod

Copyright © 2007, Ekky Software Pty Ltd.