I'm facing this error :
OpportunityTrigger: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: : Class.OpportunityHandler.ManageSharingForRI: line 58, column 1
the line in question is :
if (lsOppShareToCreate.size() > 0) insert lsOppShareToCreate;
I search about that error and I found that it may be caused by the fact that my user is not allowed to insert an opportunity. I am right ?
Do you know how I can allow the users to do that ?