From 0f5601988c5898658c6d585349249107370e0d40 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sat, 17 Sep 2016 00:45:30 +0200 Subject: move disabled flag from auth table to user table --- src/web/websession.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web/websession.vala') diff --git a/src/web/websession.vala b/src/web/websession.vala index 1b2e223..ae3cafc 100644 --- a/src/web/websession.vala +++ b/src/web/websession.vala @@ -84,7 +84,7 @@ public class WebSession { private void setup_auth(int user) throws DatabaseError, IOError { var auth = db.get_user_auth(user); - this.disabled = auth.disabled; + this.disabled = db.user_is_disabled(user); this.superuser = auth.superuser; this.auth_cashbox = auth.auth_cashbox; this.auth_products = auth.auth_products; -- cgit v1.2.3