Show More
@@ -247,7 +247,12 b' class DbManage(object):' | |||
|
247 | 247 | Session().add(hggit) |
|
248 | 248 | |
|
249 | 249 | notify('re-check default permissions') |
|
250 | self.klass.populate_default_permissions() | |
|
250 | default_user = User.get_by_username(User.DEFAULT_USER) | |
|
251 | perm = Permission.get_by_key('hg.fork.repository') | |
|
252 | reg_perm = UserToPerm() | |
|
253 | reg_perm.user = default_user | |
|
254 | reg_perm.permission = perm | |
|
255 | Session().add(reg_perm) | |
|
251 | 256 | |
|
252 | 257 | upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) |
|
253 | 258 |
General Comments 0
You need to be logged in to leave comments.
Login now