mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-06 08:01:00 +00:00
Comment tweak
This commit is contained in:
parent
e28051e3f3
commit
f7ab404887
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class AddPageItem(BaseItem):
|
|||
if not request.user.has_perm('wagtailadmin.access_admin'):
|
||||
return ""
|
||||
|
||||
# Don't render if user doesn't have ability to add siblings
|
||||
# Don't render if user doesn't have ability to add children here
|
||||
permission_checker = self.page.permissions_for_user(request.user)
|
||||
if not permission_checker.can_add_subpage():
|
||||
return ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue