Not sure why donators need a command like that. I'd just remove it from them since they have no real reason at all to use it.
If you don't want to do that, you can easily check if the player is targeting a boss, elite or 'IsInCombat() || GetMap()->IsInDungeon() || IsInRaid() || IsInGroup()' etc..