From a3a18a0ebfeb65777ad5bd065e26fa9c00e8100c Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gmail.com> Date: Sat, 10 Oct 2015 08:13:12 -0400 Subject: [PATCH] Merge pull request #921 from paulsputer/git-lfs-support --- src/main/java/com/gitblit/models/UserModel.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gitblit/models/UserModel.java b/src/main/java/com/gitblit/models/UserModel.java index 64bca82..e152274 100644 --- a/src/main/java/com/gitblit/models/UserModel.java +++ b/src/main/java/com/gitblit/models/UserModel.java @@ -552,15 +552,15 @@ } return false; } - + /** * Returns true if the user is allowed to administer the specified repository - * + * * @param repo * @return true if the user can administer the repository */ public boolean canAdmin(RepositoryModel repo) { - return canAdmin() || isMyPersonalRepository(repo.name); + return canAdmin() || repo.isOwner(username) || isMyPersonalRepository(repo.name); } public boolean isAuthenticated() { -- Gitblit v1.9.1