Skip to content

Commit e7a95f8

Browse files
committed
Add has_publish_permission to PageContent (for versioning to hook into)
1 parent 9120a35 commit e7a95f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cms/models/contentmodels.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def toggle_in_navigation(self, set_to=None):
172172
def has_placeholder_change_permission(self, user):
173173
return self.page.has_change_permission(user)
174174

175+
def has_publish_permission(self, user):
176+
return self.page.has_publish_permission(user)
177+
175178
def rescan_placeholders(self):
176179
"""
177180
Rescan and if necessary create placeholders in the current template.

0 commit comments

Comments
 (0)