Solved
EstebanBustamanteAccepted solution
Adobe Champion and Community Advisor
April 3, 2024
Hey,
This path is the one that dictates the button from the action bar menu and you should overwrite it as well: /libs/dam/gui/content/assetdetails/jcr:content/actions/adhocassetshare/granite:rendercondition
This is working fine for me

Hope this helps
Esteban Bustamante