mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
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:
@@ -219,7 +219,7 @@ public class SecurityClearanceServiceImpl extends ServiceBaseImpl implements Sec
|
|||||||
* an empty list will be returned.
|
* an empty list will be returned.
|
||||||
* @return an immutable list of the levels that a user at the target level can see.
|
* @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);
|
int targetIndex = allLevels.indexOf(targetLevel);
|
||||||
if (targetIndex == -1) { return Collections.emptyList(); }
|
if (targetIndex == -1) { return Collections.emptyList(); }
|
||||||
|
Reference in New Issue
Block a user