##// END OF EJS Templates
bugfix default permissions settings did not read overwrite setting
marcink -
r751:ff881ec6 beta
parent child Browse files
Show More
@@ -77,8 +77,9 b' class PermissionModel(object):'
77 p.permission = self.get_permission_by_name(
77 p.permission = self.get_permission_by_name(
78 form_result['default_create'])
78 form_result['default_create'])
79 self.sa.add(p)
79 self.sa.add(p)
80
80 #stage 2 update all default permissions for repos if checked
81 #stage 2 update all default permissions for repos if checked
81 if form_result['overwrite_default'] == 'true':
82 if form_result['overwrite_default'] == True:
82 for r2p in self.sa.query(RepoToPerm)\
83 for r2p in self.sa.query(RepoToPerm)\
83 .filter(RepoToPerm.user == perm_user).all():
84 .filter(RepoToPerm.user == perm_user).all():
84 r2p.permission = self.get_permission_by_name(
85 r2p.permission = self.get_permission_by_name(
General Comments 0
You need to be logged in to leave comments. Login now