LawrenceLoz / FormulaShare-DX

A native app to support complex Salesforce sharing with quick and easy configuration
MIT License
56 stars 17 forks source link

Access level checks should be made on share records not parent records to be shared #109

Closed LawrenceLoz closed 7 months ago

LawrenceLoz commented 8 months ago

The class FormulaShareSObjectShares uses isCreateable() and isDeletable() access level checks for the type passed into the class constructor.

However when called from FormulaShareBatchService, the shared object type is passed to the constructor rather than the share object type. This should be updated so that the share object type is passed and access checks carried out on this instead.

Further discussion on https://github.com/LawrenceLoz/FormulaShare-DX/pull/108