# Document specific user rights condition in umbraco-package.json

**URL:** <https://forum.umbraco.com/t/document-specific-user-rights-condition-in-umbraco-package-json/8721>\
**Category:** Questions\
**Tags:** v17\
**Created:** [November 4, 2026, 2:39pm UTC](https://forum.umbraco.com/t/document-specific-user-rights-condition-in-umbraco-package-json/8721 "2026-11-04T14:39:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin5656](https://forum.umbraco.com/user_avatar/forum.umbraco.com/gavin5656/32/2726_2.png) [@Gavin5656](https://forum.umbraco.com/u/Gavin5656)\
**Post date:** [November 4, 2026, 2:39pm UTC](https://forum.umbraco.com/t/document-specific-user-rights-condition-in-umbraco-package-json/8721/1 "2026-11-04T14:39:58Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Luuk](https://forum.umbraco.com/user_avatar/forum.umbraco.com/luuk/32/4446_2.png) [@Luuk](https://forum.umbraco.com/u/Luuk)\
**Post date:** [November 4, 2026, 2:42pm UTC](https://forum.umbraco.com/t/document-specific-user-rights-condition-in-umbraco-package-json/8721/2 "2026-11-04T14:42:17Z")

</div>

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