NIHVIVO-2508 Fix typo (missing negation operator in test)

This commit is contained in:
ryounes 2011-08-08 16:50:51 +00:00
parent debc7e15e0
commit d438bca997
3 changed files with 5 additions and 5 deletions

View file

@ -82,7 +82,7 @@ public class DataPropertyStatementTemplateModel extends PropertyStatementTemplat
// Determine whether the statement can be deleted
RequestedAction action = new DropDataPropStmt(dps);
if ( ! policyHelper.isAuthorizedAction(action)) {
if ( ! policyHelper.isAuthorizedAction(action) ) {
return;
}
@ -107,7 +107,7 @@ public class DataPropertyStatementTemplateModel extends PropertyStatementTemplat
// Determine whether the statement can be edited
RequestedAction action = new EditDataPropStmt(dps);
if ( ! policyHelper.isAuthorizedAction(action)) {
if ( ! policyHelper.isAuthorizedAction(action) ) {
return;
}

View file

@ -81,7 +81,7 @@ public class DataPropertyTemplateModel extends PropertyTemplateModel {
// Determine whether a new statement can be added
RequestedAction action = new AddDataPropStmt(subjectUri, propertyUri, RequestActionConstants.SOME_LITERAL, null, null);
if ( ! policyHelper.isAuthorizedAction(action)) {
if ( ! policyHelper.isAuthorizedAction(action) ) {
return;
}

View file

@ -59,7 +59,7 @@ public class ObjectPropertyStatementTemplateModel extends PropertyStatementTempl
// Determine whether the statement can be deleted
RequestedAction action = new DropObjectPropStmt(subjectUri, propertyUri, objectUri);
if (policyHelper.isAuthorizedAction(action)) {
if ( ! policyHelper.isAuthorizedAction(action) ) {
return;
}
@ -96,7 +96,7 @@ public class ObjectPropertyStatementTemplateModel extends PropertyStatementTempl
// Determine whether the statement can be edited
RequestedAction action = new EditObjPropStmt(ops);
if ( ! policyHelper.isAuthorizedAction(action)) {
if ( ! policyHelper.isAuthorizedAction(action) ) {
return;
}