From cbf1c9276d452e7d09169d19c2aca4ff33e16619 Mon Sep 17 00:00:00 2001 From: Mrbytes <eguervos@msn.com> Date: Sun, 07 Oct 2012 05:31:03 -0400 Subject: [PATCH] GitBlitWebApp_es.properties: Up to date and other small corrections --- src/com/gitblit/FileUserService.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/com/gitblit/FileUserService.java b/src/com/gitblit/FileUserService.java index 40bc3f6..f439469 100644 --- a/src/com/gitblit/FileUserService.java +++ b/src/com/gitblit/FileUserService.java @@ -236,6 +236,8 @@ model.canAdmin = true; } else if (role.equalsIgnoreCase(Constants.FORK_ROLE)) { model.canFork = true; + } else if (role.equalsIgnoreCase(Constants.CREATE_ROLE)) { + model.canCreate = true; } else if (role.equalsIgnoreCase(Constants.NOT_FEDERATED_ROLE)) { model.excludeFromFederation = true; } @@ -288,6 +290,9 @@ if (model.canFork) { roles.add(Constants.FORK_ROLE); } + if (model.canCreate) { + roles.add(Constants.CREATE_ROLE); + } if (model.excludeFromFederation) { roles.add(Constants.NOT_FEDERATED_ROLE); } -- Gitblit v1.9.1