# HG changeset patch # User Marcin Kuzminski # Date 2012-09-03 22:27:31 # Node ID 456a5190f1cca1de2c0fd72419d6313b74a50775 # Parent 6f3a73439d050b863c29050b5932191a84717a3d fix default permissions migrations that can cause troubles for some old users diff --git a/rhodecode/lib/db_manage.py b/rhodecode/lib/db_manage.py --- a/rhodecode/lib/db_manage.py +++ b/rhodecode/lib/db_manage.py @@ -247,7 +247,12 @@ class DbManage(object): Session().add(hggit) notify('re-check default permissions') - self.klass.populate_default_permissions() + default_user = User.get_by_username(User.DEFAULT_USER) + perm = Permission.get_by_key('hg.fork.repository') + reg_perm = UserToPerm() + reg_perm.user = default_user + reg_perm.permission = perm + Session().add(reg_perm) upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1)