summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-02-21 09:05:42 -0500
committerJames Moger <james.moger@gitblit.com>2014-02-21 09:05:42 -0500
commit9fcd4fa469c4154a6f5f82d08877336a5114e538 (patch)
tree19436ed952268a73f55a85dca3dc5275b07b6bcf /src/main
parent5f5ceaa47a64a032693f3b9b9cc3f0a2ed157c2e (diff)
downloadgitblit-9fcd4fa469c4154a6f5f82d08877336a5114e538.tar.gz
gitblit-9fcd4fa469c4154a6f5f82d08877336a5114e538.zip
Remove admin permission setting from Redmine auth provider (issue-368)
This feature depended on an undocumented behavior of Redmine. If/when Redmine groups are mapped to Gitblit teams, we can reconsider setting the admin permission (issue-321).
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/gitblit/auth/RedmineAuthProvider.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/java/com/gitblit/auth/RedmineAuthProvider.java b/src/main/java/com/gitblit/auth/RedmineAuthProvider.java
index 04adc459..7e957ecb 100644
--- a/src/main/java/com/gitblit/auth/RedmineAuthProvider.java
+++ b/src/main/java/com/gitblit/auth/RedmineAuthProvider.java
@@ -134,11 +134,6 @@ public class RedmineAuthProvider extends UsernamePasswordAuthenticationProvider
user.displayName = current.user.firstname + " " + current.user.lastname;
user.emailAddress = current.user.mail;
user.password = Constants.EXTERNAL_ACCOUNT;
- if (!StringUtils.isEmpty(current.user.login)) {
- // only admin users can get login name
- // evidently this is an undocumented behavior of Redmine
- user.canAdmin = true;
- }
// TODO consider Redmine group mapping for team membership
// http://www.redmine.org/projects/redmine/wiki/Rest_Users