Show More
@@ -77,8 +77,9 b' class PermissionModel(object):' | |||
|
77 | 77 | p.permission = self.get_permission_by_name( |
|
78 | 78 | form_result['default_create']) |
|
79 | 79 | self.sa.add(p) |
|
80 | ||
|
80 | 81 | #stage 2 update all default permissions for repos if checked |
|
81 |
if form_result['overwrite_default'] == |
|
|
82 | if form_result['overwrite_default'] == True: | |
|
82 | 83 | for r2p in self.sa.query(RepoToPerm)\ |
|
83 | 84 | .filter(RepoToPerm.user == perm_user).all(): |
|
84 | 85 | r2p.permission = self.get_permission_by_name( |
General Comments 0
You need to be logged in to leave comments.
Login now