summaryrefslogtreecommitdiffstats
path: root/src/web/websession.vala
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2016-09-17 00:45:30 +0200
committerSebastian Reichel <sre@ring0.de>2016-09-17 01:01:01 +0200
commit0f5601988c5898658c6d585349249107370e0d40 (patch)
tree16d5ee6e55cf5e21548590218d39785f51afb78e /src/web/websession.vala
parent347f5dc2f3c127478ac1a12709dd4e6cae76da07 (diff)
downloadserial-barcode-scanner-0f5601988c5898658c6d585349249107370e0d40.tar.bz2
move disabled flag from auth table to user table
Diffstat (limited to 'src/web/websession.vala')
-rw-r--r--src/web/websession.vala2
1 files changed, 1 insertions, 1 deletions
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;