Solved
EstebanBustamanteAccepted solution
Adobe Champion and Community Advisor
Apr 3, 2024 1:39 PM UTC
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