API CanInspect

Returns true if the player can inspect the unit.
 canInspect = CanInspect(unit [, showError])
==Arguments==
:;unit: : UnitId
:;showError: - If true, the function will display an error message ("You can't inspect that unit") if you cannot inspect the specified unit.
==Returns==
:;canInspect: - True if you can inspect the specified unit
==Details==
* You cannot inspect NPCs, nor PvP-enabled hostile players in PvP-enabled locations.
==See also==
*