# How to deny a user/group the right to delete their own pages?

**URL:** <https://forum.xwiki.org/t/how-to-deny-a-user-group-the-right-to-delete-their-own-pages/2563>\
**Category:** Help / Discuss\
**Tags:** rights, delete\
**Created:** [January 30, 2018, 6:04pm UTC](https://forum.xwiki.org/t/how-to-deny-a-user-group-the-right-to-delete-their-own-pages/2563 "2018-01-30T18:04:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![inhji](https://forum.xwiki.org/user_avatar/forum.xwiki.org/inhji/32/561_2.png) [@inhji](https://forum.xwiki.org/u/inhji)\
**Post date:** [January 30, 2018, 6:04pm UTC](https://forum.xwiki.org/t/how-to-deny-a-user-group-the-right-to-delete-their-own-pages/2563/1 "2018-01-30T18:04:25Z")

</div>

Hello,

I’ve explicitly denied the right to delete a page on multiple levels (global user rights, global group rights, page user rights, page group rights) but the user is still able to delete the page.

It seems like the right settings are outright ignored… 😩

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [January 30, 2018, 7:41pm UTC](https://forum.xwiki.org/t/how-to-deny-a-user-group-the-right-to-delete-their-own-pages/2563/2 "2018-01-30T19:41:52Z")

</div>

> [@inhji](#):
>
> It seems like the right settings are outright ignored… 😩

Check [http://extensions.xwiki.org/xwiki/bin/view/Extension/Security+Module#HDefaultrightsbeingpredefined](http://extensions.xwiki.org/xwiki/bin/view/Extension/Security+Module#HDefaultrightsbeingpredefined) . There is a “Creator” right

> Internal right provided to document creators

that implies delete right. So the creator of a page automatically gets the right to delete that page. I don’t know if you can deny delete to creators.

---

<div class="post-metadata">

**Author:** ![Pbas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/pbas/32/15_2.png) [@Pbas](https://forum.xwiki.org/u/Pbas)\
**Post date:** [January 31, 2018, 8:19am UTC](https://forum.xwiki.org/t/how-to-deny-a-user-group-the-right-to-delete-their-own-pages/2563/3 "2018-01-31T08:19:33Z")

</div>

Hello,

to cheat then

- you can modify the creator: [http://extensions.xwiki.org/xwiki/bin/view/Extension/Change%20creator%2C%20author%20or%20contentAuthor/](http://extensions.xwiki.org/xwiki/bin/view/Extension/Change%20creator%2C%20author%20or%20contentAuthor/)
- , add a SSX (CSS) to hide delete button (but page can be deleted still with URL: bin/delete/xxx). IMO the cleaner way
- or set $canDelete in ./flamingo/menus\_content.vm (page can be deleted too)

Pascal

---

<div class="post-metadata">

**Author:** ![inhji](https://forum.xwiki.org/user_avatar/forum.xwiki.org/inhji/32/561_2.png) [@inhji](https://forum.xwiki.org/u/inhji)\
**Post date:** [January 31, 2018, 9:24am UTC](https://forum.xwiki.org/t/how-to-deny-a-user-group-the-right-to-delete-their-own-pages/2563/4 "2018-01-31T09:24:53Z")

</div>

Thanks @mflorea for the link and thanks @Pbas for pointing out these “cheats” 🙂
