Permalink
Browse files

fixes #249 recover pages button not displayed anymore if reversion is…

… not installed
  • Loading branch information...
1 parent 816af68 commit 1ac277f508abdec4dd6fee9c07ae4f0675d9a80e @digi604 digi604 committed Nov 17, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 cms/admin/pageadmin.py
@@ -579,6 +579,8 @@ def has_recover_permission(self, request):
"""
Returns True if the use has the right to recover pages
"""
+ if not "reversion" in settings.INSTALLED_APPS:
+ return False
user = request.user
if user.is_superuser:
return True

0 comments on commit 1ac277f

Please sign in to comment.