[Kimchi-devel] [PATCH] Bug fix: Do not require login for simple resources

Crístian Viana vianac at linux.vnet.ibm.com
Wed Jun 18 17:53:19 UTC 2014


The subdirectories "css", "js", "libs" and "images" currently require
a login session to be accessed. Those files are simple resources, thus
they don't need to be protected.
One consequence of this behavior is that it is not possible to create a remote
template with the current security settings.

Remove the login session requirement to access the subdirectories "css",
"js", "libs" and "images".

Signed-off-by: Aline Manera <alinefm at br.ibm.com>
Signed-off-by: Crístian Viana <vianac at linux.vnet.ibm.com>
---
 src/kimchi/config.py.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/kimchi/config.py.in b/src/kimchi/config.py.in
index 74c8fa5..4be767e 100644
--- a/src/kimchi/config.py.in
+++ b/src/kimchi/config.py.in
@@ -154,6 +154,7 @@ class UIConfig(dict):
             ui_configs['/' + sub_dir] = {
                 'tools.staticdir.on': True,
                 'tools.staticdir.dir': os.path.join(paths.ui_dir, sub_dir),
+                'tools.kimchisession.on': False,
                 'tools.nocache.on': False}
             if sub_dir != 'images':
                 ui_configs['/' + sub_dir].update({
-- 
1.9.3




More information about the Kimchi-devel mailing list