check.access: allow specifying permissions
This allows us to verify permissions of a specific user without having to read through project configurations. Change-Id: Ibfe988391578dcadd74014ade181e7c15a484016
This commit is contained in:
@@ -18,13 +18,8 @@ import com.google.gerrit.common.Nullable;
|
||||
|
||||
public class AccessCheckInput {
|
||||
public String account;
|
||||
|
||||
@Nullable public String ref;
|
||||
|
||||
public AccessCheckInput(String account, @Nullable String ref) {
|
||||
this.account = account;
|
||||
this.ref = ref;
|
||||
}
|
||||
|
||||
public AccessCheckInput() {}
|
||||
// If permission is given, ref must also be given.
|
||||
@Nullable public String permission;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user