diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-10-05 19:50:35 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-10-05 19:50:35 +0200 |
commit | 98f7f401e46a03fb23d96140a4b22813144cf125 (patch) | |
tree | 5a0e98dc67b6b4fedd833e970cb59d27c400535a /src | |
parent | 8a54275dfb94c5e21d09ad1249f3ac7bc0e6f806 (diff) | |
download | serial-barcode-scanner-98f7f401e46a03fb23d96140a4b22813144cf125.tar.bz2 |
add users menu for admins
Diffstat (limited to 'src')
-rw-r--r-- | src/template.vala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/template.vala b/src/template.vala index ef7e43d..8fe56d0 100644 --- a/src/template.vala +++ b/src/template.vala @@ -66,6 +66,7 @@ public class WebTemplate { this.template = this.template.replace("{{{CONTENT}}}", ((string) template)); this.template = this.template.replace("{{{USERNAME}}}", login.name); this.template = this.template.replace("{{{USERID}}}", "%d".printf(login.user)); + this.template = this.template.replace("{{{SUPERUSER}}}", login.superuser ? "" : "hidden"); } public WebTemplate.DATA(string file) throws TemplateError { |