Author: tmortagne Date: 2008-01-24 10:37:08 +0100 (Thu, 24 Jan 2008) New Revision: 7033
Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Document.java Log: XWIKI-2028: Can't delete document using Document.delete if user does not have programming rights Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Document.java =================================================================== --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Document.java 2008-01-24 08:41:22 UTC (rev 7032) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Document.java 2008-01-24 09:37:08 UTC (rev 7033) @@ -1613,7 +1613,7 @@ */ protected void deleteDocument() throws XWikiException { - getXWikiContext().getWiki().deleteDocument(getDocument(), getXWikiContext()); + getXWikiContext().getWiki().deleteDocument(this.doc, getXWikiContext()); cloned = false; } _______________________________________________ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications