RM-2197: restrict restrictList access, as suggested by Tom and Tuna during +review RM-56

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@104305 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Webster
2015-05-15 16:07:20 +00:00
parent c24df57404
commit be7142f439

View File

@@ -219,7 +219,7 @@ public class SecurityClearanceServiceImpl extends ServiceBaseImpl implements Sec
* an empty list will be returned.
* @return an immutable list of the levels that a user at the target level can see.
*/
List<ClearanceLevel> restrictList(List<ClearanceLevel> allLevels, ClearanceLevel targetLevel)
private List<ClearanceLevel> restrictList(List<ClearanceLevel> allLevels, ClearanceLevel targetLevel)
{
int targetIndex = allLevels.indexOf(targetLevel);
if (targetIndex == -1) { return Collections.emptyList(); }