Skip to content

Commit

Permalink
XWIKI-14674: Viewing a deleted document as guest redirects to login
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumitriu authored and tmortagne committed Sep 9, 2017
1 parent 6761acc commit dc704c0
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -151,8 +151,7 @@ public boolean canDelete()
try {
XWikiDocument doc = new XWikiDocument();
doc.setFullName(getFullName(), this.context);
if (!hasAccessLevel(ADMIN_RIGHT, getFullName())
&& !getXWikiContext().getWiki().getRightService().checkAccess("delete", doc, this.context)) {
if (!hasAccessLevel("delete", getFullName())) {
return false;
}
String waitdays;
Expand Down

0 comments on commit dc704c0

Please sign in to comment.