Document specific user rights condition in umbraco-package.json

Is it possible to add a rule to umbraco-package.json to only show a button in the workspace when the current user does not have publish rights for the current document? Umb.Condition.UserPermission.Document isn’t granular enough for my needs because I need it to be in the context of the current document, not site-wide. Is there a built-in method to achieve this or am I in custom conditions territory?

Umbraco hides/changes the save and publish button when the user has no permissions to publish that document, so maybe look into that direction? :slight_smile: