diff options
author | Paul Martin <paul@paulsputer.com> | 2015-12-07 23:09:26 +0000 |
---|---|---|
committer | Paul Martin <paul@paulsputer.com> | 2015-12-07 23:09:26 +0000 |
commit | 697905cbf3b6fc1d8f22322a4f403b4abe2f0c0a (patch) | |
tree | 6432ad5743f8a4ab2e636da9300774b897a62e0a /src/main/java/com/gitblit/models | |
parent | 0aecfc10a08474a8ae19c2a46ea9ed77d75b2f6e (diff) | |
download | gitblit-697905cbf3b6fc1d8f22322a4f403b4abe2f0c0a.tar.gz gitblit-697905cbf3b6fc1d8f22322a4f403b4abe2f0c0a.zip |
fix for #967 filestore menu for all users
+ Filestore listing filtered by user view permissions
+ Configuration help for filestore relocated to website files
+ Added migration example
Diffstat (limited to 'src/main/java/com/gitblit/models')
-rw-r--r-- | src/main/java/com/gitblit/models/FilestoreModel.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/models/FilestoreModel.java b/src/main/java/com/gitblit/models/FilestoreModel.java index ff7b210e..4144df6b 100644 --- a/src/main/java/com/gitblit/models/FilestoreModel.java +++ b/src/main/java/com/gitblit/models/FilestoreModel.java @@ -111,6 +111,15 @@ public class FilestoreModel implements Serializable { repositories.remove(repo); } + public synchronized boolean isInRepositoryList(List<String> repoList) { + for (String name : repositories) { + if (repoList.contains(name)) { + return true; + } + } + return false; + } + public static enum Status { Deleted(-30), |