diff options
Diffstat (limited to 'src/web/template.vala')
-rw-r--r-- | src/web/template.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/template.vala b/src/web/template.vala index 690de00..b5265d8 100644 --- a/src/web/template.vala +++ b/src/web/template.vala @@ -66,7 +66,8 @@ 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"); + this.template = this.template.replace("{{{AUTH_USERS}}}", (login.superuser || login.auth_users) ? "" : "hidden"); + this.template = this.template.replace("{{{AUTH_CASHBOX}}}", (login.superuser || login.auth_cashbox) ? "" : "hidden"); } public WebTemplate.DATA(string file) throws TemplateError { |