Lukasz Jader
2012-07-14 7cd88ddbd93b115aeda76b87b1c99f9afa4aaaef
src/com/gitblit/RpcServlet.java
@@ -49,7 +49,7 @@
   private static final long serialVersionUID = 1L;
   public static final int PROTOCOL_VERSION = 2;
   public static final int PROTOCOL_VERSION = 3;
   public RpcServlet() {
      super();
@@ -276,7 +276,7 @@
         }
      } else if (RpcRequest.LIST_SETTINGS.equals(reqType)) {
         // return the server's settings
         ServerSettings settings = GitBlit.self().getSettingsModel();
         ServerSettings settings = GitBlit.self().getSettingsModel();
         if (allowAdmin) {
            // return all settings
            result = settings;
@@ -294,12 +294,12 @@
               keys.add(Keys.federation.sets);
            }
            // build the settings
            ServerSettings managementSettings = new ServerSettings();
            ServerSettings managementSettings = new ServerSettings();
            for (String key : keys) {
               managementSettings.add(settings.get(key));
            }
            if (allowManagement) {
               settings.pushScripts = settings.pushScripts;
               managementSettings.pushScripts = settings.pushScripts;
            }
            result = managementSettings;
         }