mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
DS-2562, fix incorrect if statement.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user