Test for self-editing by Identifiers, not by role level.
This commit is contained in:
parent
355c5aafa6
commit
61afec8de0
1 changed files with 0 additions and 6 deletions
|
@ -11,7 +11,6 @@ import org.apache.commons.logging.LogFactory;
|
|||
|
||||
import edu.cornell.mannlib.vitro.webapp.auth.identifier.IdentifierBundle;
|
||||
import edu.cornell.mannlib.vitro.webapp.auth.identifier.common.HasAssociatedIndividual;
|
||||
import edu.cornell.mannlib.vitro.webapp.auth.identifier.common.HasRoleLevel;
|
||||
import edu.cornell.mannlib.vitro.webapp.auth.policy.bean.PropertyRestrictionPolicyHelper;
|
||||
import edu.cornell.mannlib.vitro.webapp.auth.policy.ifaces.Authorization;
|
||||
import edu.cornell.mannlib.vitro.webapp.auth.policy.ifaces.PolicyDecision;
|
||||
|
@ -57,11 +56,6 @@ public class DisplayRestrictedDataToSelfPolicy implements PolicyIface {
|
|||
return defaultDecision("whatToAuth was null");
|
||||
}
|
||||
|
||||
RoleLevel userRole = HasRoleLevel.getUsersRoleLevel(whoToAuth);
|
||||
if (userRole != RoleLevel.SELF) {
|
||||
return defaultDecision("not a self-editor");
|
||||
}
|
||||
|
||||
Collection<String> associated = HasAssociatedIndividual
|
||||
.getIndividualUris(whoToAuth);
|
||||
if (associated.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue