From dafc19a8cc28924fed0d4210ccd0b8adca7d2eb5 Mon Sep 17 00:00:00 2001 From: Philip L. McMahon <philip.l.mcmahon@gmail.com> Date: Sun, 05 Feb 2012 01:01:35 -0500 Subject: [PATCH] Return command-specific rejection result if authz check fails. --- src/com/gitblit/client/GitblitWorker.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/com/gitblit/client/GitblitWorker.java b/src/com/gitblit/client/GitblitWorker.java index 5926a77..93c35d6 100644 --- a/src/com/gitblit/client/GitblitWorker.java +++ b/src/com/gitblit/client/GitblitWorker.java @@ -16,6 +16,7 @@ package com.gitblit.client; import java.awt.Component; +import java.awt.Cursor; import java.io.IOException; import java.text.MessageFormat; @@ -37,6 +38,7 @@ public GitblitWorker(Component parent, RpcRequest request) { this.parent = parent; this.request = request; + parent.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); } protected RpcRequest getRequestType() { @@ -49,6 +51,7 @@ } protected void done() { + parent.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); try { Boolean success = get(); if (success) { -- Gitblit v1.9.1