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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user