DS-2562, fix incorrect if statement.

This commit is contained in:
tmtvl
2015-05-01 19:03:47 +02:00
parent 9f25afbea3
commit e394d92e24

View File

@@ -28,6 +28,7 @@ import org.dspace.core.Context;
* possible values are listed in the DSpace Constant class.
*
* @author Scott Phillips
* @author Tim Van den Langenbergh
*/
public class HandleAuthorizedMatcher extends AbstractLogEnabled implements Matcher
@@ -66,7 +67,7 @@ public class HandleAuthorizedMatcher extends AbstractLogEnabled implements Match
}
// Is it a valid action?
if (action > 0 || action >= Constants.actionText.length)
if (action < 0 || action >= Constants.actionText.length)
{
getLogger().warn("Invalid action: '"+pattern+"'");
return null;