Przeglądaj źródła

return unauthorized instead of forbidden when session is required

tags/2.0.1
Jonathan Cobb 4 lat temu
rodzic
commit
360ea80674
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      wizard-server/src/main/java/org/cobbzilla/wizard/resources/ResourceUtil.java

+ 1
- 1
wizard-server/src/main/java/org/cobbzilla/wizard/resources/ResourceUtil.java Wyświetl plik

@@ -210,7 +210,7 @@ public class ResourceUtil {
log.debug("userPrincipal: "+e);
user = null;
}
if (required && user == null) throw forbiddenEx();
if (required && user == null) throw unauthorizedEx();
return user;
}



Ładowanie…
Anuluj
Zapisz