##// END OF EJS Templates
When using apply to children flag in repo group permission...
marcink -
r3974:39798d53 default
parent child Browse files
Show More
@@ -185,8 +185,9 b' class ReposGroupModel(BaseModel):'
185 185 repos_group=obj, user=user, perm=perm
186 186 )
187 187 elif isinstance(obj, Repository):
188 #we do this ONLY IF repository is non-private
189 if obj.private:
188 # private repos will not allow to change the default permissions
189 # using recursive mode
190 if obj.private and user == User.DEFAULT_USER:
190 191 return
191 192
192 193 # we set group permission but we have to switch to repo
@@ -208,6 +209,8 b' class ReposGroupModel(BaseModel):'
208 209 RepoModel().grant_users_group_permission(
209 210 repo=obj, group_name=users_group, perm=perm
210 211 )
212
213 # start updates
211 214 updates = []
212 215 log.debug('Now updating permissions for %s in recursive mode:%s'
213 216 % (repos_group, recursive))
General Comments 0
You need to be logged in to leave comments. Login now