From 27c40011b742b16d69d2efcb10b9b0b32ce96297 Mon Sep 17 00:00:00 2001 From: kload Date: Wed, 14 May 2014 22:27:07 +0000 Subject: [PATCH] [fix] portal_url for ynhanel.json --- access.lua | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/access.lua b/access.lua index 05b08bc..09d7c7e 100644 --- a/access.lua +++ b/access.lua @@ -397,15 +397,16 @@ function get_data_for(view) local mails = get_mails(user) data = { - title = user.." "..cache:get(user.."-cn").."", - connected = true, - uid = user, - cn = cache:get(user.."-cn"), - sn = cache:get(user.."-sn"), - givenName = cache:get(user.."-givenName"), - mail = mails["mail"], - mailalias = mails["mailalias"], - maildrop = mails["maildrop"], + title = user.." "..cache:get(user.."-cn").."", + connected = true, + portal_url = portal_url, + uid = user, + cn = cache:get(user.."-cn"), + sn = cache:get(user.."-sn"), + givenName = cache:get(user.."-givenName"), + mail = mails["mail"], + mailalias = mails["mailalias"], + maildrop = mails["maildrop"], app = {} }