Allow to define per project if plugin config parameter is editable
It is now possible to decide for a project specific plugin configuration parameter whether for a specific project it is editable in the UI. Change-Id: I29f55ca80d0c304ec61e5f7be10128629c7945cf Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -17,6 +17,7 @@ package com.google.gerrit.server.config;
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.gerrit.extensions.annotations.ExtensionPoint;
|
||||
import com.google.gerrit.server.project.ProjectState;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@@ -121,4 +122,8 @@ public class ProjectConfigEntry {
|
||||
public List<String> getPermittedValues() {
|
||||
return permittedValues;
|
||||
}
|
||||
|
||||
public boolean isEditable(ProjectState project) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user