Background
An Apex Trigger has been set up on a parent object to automatically create a child object record when the parent object record is created.
However, another Apex Trigger has been set up on the child object which prevents the creation of child object records (by displaying an error, much like a validation rule) unless:
a) The user is a System Administrator OR
b) The user meets another condition (I won't go into too much detail for the sake of brevity)
Issue
The Apex Trigger on the child object prevents the Apex Trigger on the parent object from creating a child object record.
This is not desired.
Question
Is there a way to create an exception in the child object trigger for records that are being created by the parent object trigger?
Perhaps this can be achieved detecting if the child object record is being created by Apex (as opposed to a user), or by making the parent object trigger imperonate a system administrator user when creating the record.
Any help would be much appreciated.