use of com.atlassian.stash.user.Permission in project stashbot by palantir.
the class PluginUserManager method addUserToRepoForReading.
public void addUserToRepoForReading(String username, Repository repo) {
StashUser user = us.getUserByName(username);
Permission repoRead = Permission.REPO_READ;
SetPermissionRequest spr = new SetPermissionRequest.Builder().repositoryPermission(repoRead, repo).user(user).build();
pas.setPermission(spr);
}
Aggregations