if (creator != null) {
if (userOrGroupName.equals(creator)) {
logAllow(userOrGroupName, entityReference, accessLevel, "delete right from document ownership");
if (wikiOwner != null) {
if (wikiOwner.equals(userOrGroupName)) {
logAllow(userOrGroupName, entityReference, accessLevel, "admin level from wiki ownership");
allow = checkRight(userOrGroupName, entityWikiPreferences, "register", user, true, true, context);
if (allow) {
logAllow(userOrGroupName, entityReference, accessLevel, "register level");
logAllow(userOrGroupName, entityReference, accessLevel, "register level (no right found)");
maxRecursiveSpaceChecks, context);
if (isSuperUser) {
logAllow(userOrGroupName, entityReference, accessLevel, "admin level");
allow_found = true;
if (allow) {
logAllow(userOrGroupName, entityReference, accessLevel, "document level");
allow_found = true;
if (allow) {
logAllow(userOrGroupName, entityReference, accessLevel, "web level");
allow_found = true;
if (allow) {
logAllow(userOrGroupName, entityReference, accessLevel, "xwiki level");