Show More
@@ -541,10 +541,11 b' class PermissionModel(BaseModel):' | |||
|
541 | 541 | |
|
542 | 542 | _def = Permission.get_by_key('branch.' + _def_name) |
|
543 | 543 | |
|
544 | # TODO(marcink): those are bind to repo, perms, we need to unfold user somehow from this | |
|
545 |
|
|
|
546 |
|
|
|
547 | .all(): | |
|
544 | user_perms = UserToRepoBranchPermission.query()\ | |
|
545 | .join(UserToRepoBranchPermission.user_repo_to_perm)\ | |
|
546 | .filter(UserRepoToPerm.user == perm_user).all() | |
|
547 | ||
|
548 | for g2p in user_perms: | |
|
548 | 549 | g2p.permission = _def |
|
549 | 550 | self.sa.add(g2p) |
|
550 | 551 |
General Comments 0
You need to be logged in to leave comments.
Login now