diff rhodecode/controllers/admin/settings.py @ 3920:985db7f7b9b2 beta

Added flag to controll option for changing the repos path location from web interface
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 30 May 2013 16:08:14 +0200
parents 36f7562a5919
children 9378d8640a4b
line wrap: on
line diff
--- a/rhodecode/controllers/admin/settings.py	Thu May 30 14:12:32 2013 +0200
+++ b/rhodecode/controllers/admin/settings.py	Thu May 30 16:08:14 2013 +0200
@@ -242,10 +242,10 @@
                 sett = RhodeCodeUi.get_by_key('push_ssl')
                 sett.ui_value = form_result['web_push_ssl']
                 Session().add(sett)
-
-                sett = RhodeCodeUi.get_by_key('/')
-                sett.ui_value = form_result['paths_root_path']
-                Session().add(sett)
+                if c.visual.allow_repo_location_change:
+                    sett = RhodeCodeUi.get_by_key('/')
+                    sett.ui_value = form_result['paths_root_path']
+                    Session().add(sett)
 
                 #HOOKS
                 sett = RhodeCodeUi.get_by_key(RhodeCodeUi.HOOK_UPDATE)