diff options
author | James Moger <james.moger@gitblit.com> | 2014-10-31 09:52:02 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-10-31 09:52:02 -0400 |
commit | f163d0f1f9ffca9fa1c9a6d989198e198decdc04 (patch) | |
tree | 9a9c82efb62bd00ebd353397ead882207aa6c0cc /src/main/java/com/gitblit/wicket | |
parent | 9197cd604caa067186a8639882afa881c37be291 (diff) | |
download | gitblit-f163d0f1f9ffca9fa1c9a6d989198e198decdc04.tar.gz gitblit-f163d0f1f9ffca9fa1c9a6d989198e198decdc04.zip |
Only set mutable user access permissions
Diffstat (limited to 'src/main/java/com/gitblit/wicket')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/EditUserPage.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EditUserPage.java b/src/main/java/com/gitblit/wicket/pages/EditUserPage.java index 5ee2f9fd..c6b5c3c7 100644 --- a/src/main/java/com/gitblit/wicket/pages/EditUserPage.java +++ b/src/main/java/com/gitblit/wicket/pages/EditUserPage.java @@ -178,7 +178,9 @@ public class EditUserPage extends RootSubPage { // update user permissions
for (RegistrantAccessPermission repositoryPermission : permissions) {
- userModel.setRepositoryPermission(repositoryPermission.registrant, repositoryPermission.permission);
+ if (repositoryPermission.mutable) {
+ userModel.setRepositoryPermission(repositoryPermission.registrant, repositoryPermission.permission);
+ }
}
Iterator<String> selectedTeams = teams.getSelectedChoices();
|