allow = checkRight(userOrGroupName, entityWikiPreferences, "register", user, true, true, context);
if (allow) {
logAllow(userOrGroupName, entityReference, accessLevel, "register level");
try {
deny =
checkRight(userOrGroupName, entityWikiPreferences, "register", user, false, true, context);
if (deny) {
return false;
currentdoc =
currentdoc == null ? context.getWiki().getDocument(entityReference, context) : currentdoc;
deny = checkRight(userOrGroupName, currentdoc, accessLevel, user, false, false, context);
deny_found = true;
if (deny) {
allow = checkRight(userOrGroupName, currentdoc, accessLevel, user, true, false, context);
allow_found = true;
if (allow) {
if (hasDenyRights()) {
try {
deny = checkRight(userOrGroupName, webdoc, accessLevel, user, false, true, context);
deny_found = true;
if (deny) {
allow = checkRight(userOrGroupName, webdoc, accessLevel, user, true, true, context);
allow_found = true;
if (allow) {