##// END OF EJS Templates
branch-permissions: fixed override of default permissions for branches from admin page
marcink -
r2988:390bbe68 default
parent child Browse files
Show More
@@ -541,10 +541,11 b' class PermissionModel(BaseModel):'
541
541
542 _def = Permission.get_by_key('branch.' + _def_name)
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
544 user_perms = UserToRepoBranchPermission.query()\
545 for g2p in self.sa.query(UserToRepoBranchPermission) \
545 .join(UserToRepoBranchPermission.user_repo_to_perm)\
546 .filter(UserToRepoBranchPermission.user == perm_user) \
546 .filter(UserRepoToPerm.user == perm_user).all()
547 .all():
547
548 for g2p in user_perms:
548 g2p.permission = _def
549 g2p.permission = _def
549 self.sa.add(g2p)
550 self.sa.add(g2p)
550
551
General Comments 0
You need to be logged in to leave comments. Login now