added the canImpersonate() method and modified the impersonate() implementation
added the canImpersonate() method and modified the impersonate() implementation

dedalozzo/pit-press,dedalozzo/reindex,reindexltd/reindex