def can_change_page(request):
 from cms.utils import page_permissions
 user = request.user
 current_page = request.current_page
 if current_page:
  return page_permissions.user_can_change_page(user, current_page)
 site = Site.objects.get_current(request)
 return page_permissions.user_can_change_all_pages(user, site)

def can_change_page ( request ) : from cms . utils import page_permissions user = request . user current_page = request . current_page if current_page : return page_permissions . user_can_change_page ( user , current_page ) site = Site . objects . get_current ( request ) return page_permissions . user_can_change_all_pages ( user , site )
check whether a user has the permission to change the page .