I've tried to google this but can't find the answer anywhere. Basically, I want to skip approval process when the user is just creating a model. The package provides a function:
public function requiresApprovalWhen($modifications): bool
{
// logic for requiring approval or not
// ideally, i will return false here if the model is just being created
}
Upon checking the $modifications variable however, it only contains the incoming values. Thus, I can't check if the action is to create a new model or not.
I've tried to google this but can't find the answer anywhere. Basically, I want to skip approval process when the user is just creating a model. The package provides a function:
Upon checking the
$modifications
variable however, it only contains the incoming values. Thus, I can't check if the action is to create a new model or not.How do I go about this?