Make project and ref for each PermissionRule available to RefControl

This information is important to be able to allow ALLOW rules to
override BLOCK rules if they are defined on the same project. This
will be implemented in a follow-up change.

Change-Id: If22c1f0f8e13735e2e1e6e868e82b0d3617ef616
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
This commit is contained in:
Sasa Zivkov
2013-02-04 14:45:41 +01:00
parent d589f463e3
commit 272275343c
4 changed files with 89 additions and 22 deletions

View File

@@ -212,7 +212,8 @@ public class ProjectState {
section.setPermissions(copy);
}
SectionMatcher matcher = SectionMatcher.wrap(section);
SectionMatcher matcher = SectionMatcher.wrap(getProject().getNameKey(),
section);
if (matcher != null) {
sm.add(matcher);
}
@@ -350,4 +351,4 @@ public class ProjectState {
}
return false;
}
}
}