Hi @navyavo,
You can give this a try - adding a few practical ways to manage this as below:
1. Use AEM page permissions to restrict replication
AEM controls the visibility of the "Publish" buttons based on replicate permissions.
Steps:
-
Navigate to /content in Useradmin or CRXDE Lite.
-
Deny the replicate permission for your target group (e.g., content-authors) on the required path.
-
Ensure only approvers or publishers group has this permission.
This will automatically hide the Publish options in the toolbar for users who don't have replicate rights.
2. Customize the page editor action toolbar (if needed)
If permissions alone don’t meet your exact needs, you could look into customizing the editor toolbar’s action rendering logic.
Location:
/apps/<your-project>/cq/gui/components/authoring/editors/clientlibs/core/js
You could inject custom logic to control visibility based on group membership. That said, permissions are still the cleaner and more secure route.
3. You can also try using Closed User Groups (CUG) for controlled access
If certain areas of the site require stricter publishing controls:
References: https://experienceleague.adobe.com/en/docs/experience-manager-65/content/security/security
https://experienceleague.adobe.com/en/docs/experience-manager-65/content/security/user-group-ac-admin
https://experienceleague.adobe.com/en/docs/experience-manager-65/content/security/touch-ui-principal-view
Hope that helps!