From: Niki Roo Date: Wed, 13 May 2020 17:29:32 +0000 (+0200) Subject: debug X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=aac272eefb33bf18e406d18c309c7d072c1454fb;p=fanfix-swing.git debug --- diff --git a/src/be/nikiroo/fanfix/library/WebLibraryServer.java b/src/be/nikiroo/fanfix/library/WebLibraryServer.java index c4be6633..7eeecb03 100644 --- a/src/be/nikiroo/fanfix/library/WebLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/WebLibraryServer.java @@ -72,6 +72,7 @@ public class WebLibraryServer implements Runnable { opts += "|wl"; if (!bl) opts += "|bl"; + opts += "|"; this.token = wookie + "~" + CookieUtils.generateCookie(wookie + subkey + opts, 0) @@ -103,9 +104,9 @@ public class WebLibraryServer implements Runnable { this.token = token; this.success = true; - this.rw = opts.contains("|rw"); - this.wl = !opts.contains("|wl"); - this.bl = !opts.contains("|bl"); + this.rw = opts.contains("|rw|"); + this.wl = !opts.contains("|wl|"); + this.bl = !opts.contains("|bl|"); } } } @@ -1083,6 +1084,11 @@ public class WebLibraryServer implements Runnable { private List metas(LoginResult login) throws IOException { BasicLibrary lib = Instance.getInstance().getLibrary(); + System.out.println("Whitelist: " + whitelist); + System.out.println("Blacklist: " + blacklist); + System.out.println("isWl: " + login.isWl()); + System.out.println("isBl: " + login.isBl()); + List metas = new ArrayList(); for (MetaData meta : lib.getList().getMetas()) { if (isAllowed(meta, login)) {