          return conneg.negotiate(request, renderers, self.format, force)
  
      def check_permissions(self, request, obj=None):
          """
          Check if request should be permitted.
          """
          for permission in self.get_permissions():
              if not permission.has_permission(request, obj):
                  self.permission_denied(request)
  
 
</s> remove     def check_permissions(self, request, obj=None):
 </s> add     def has_permission(self, request, obj=None): </s> remove                 self.permission_denied(request)
 </s> add                 return False
        return True </s> remove         self.check_permissions(request)
 </s> add         if not self.has_permission(request):
            self.permission_denied(request) </s> remove         self.check_permissions(self.request, obj)
 </s> add         if not self.has_permission(self.request, obj):
            self.permission_denied(self.request) </s> remove     def _get_content(self, view, request, obj, media_type):
 </s> add     def get_content(self, view, request, obj, media_type):
        Return `True` if the request should be permitted.
          return conneg.negotiate(request, renderers, self.format, force)
  
      def check_permissions(self, request, obj=None):
          """
        Return `True` if the request should be permitted.
          """
          for permission in self.get_permissions():
              if not permission.has_permission(request, obj):
                  self.permission_denied(request)
  
keep keep keep keep replace keep keep keep keep keep
 Only display forms when user has permissions.  #159 
rest_framework/views.py