def has_change_permission(self, request, obj=None):
if settings.TREE_EDITOR_OBJECT_PERMISSIONS:<EOL><INDENT>opts = self.opts<EOL>r = request.user.has_perm(opts.app_label + '<STR_LIT:.>' + opts.get_change_permission(), obj)<EOL><DEDENT>else:<EOL><INDENT>r = True<EOL><DEDENT>return r and super(TreeEditor, self).has_change_permission(request, obj)<EOL>
Implement a lookup for object level permissions. Basically the same as
ModelAdmin.has_change_permission, but also passes the obj parameter in.