282 |
282 |
283 ui.debug('acl: checking access for user "%s"\n' % user) |
283 ui.debug('acl: checking access for user "%s"\n' % user) |
284 |
284 |
285 cfg = ui.config('acl', 'config') |
285 cfg = ui.config('acl', 'config') |
286 if cfg: |
286 if cfg: |
287 ui.readconfig(cfg, sections = ['acl.groups', 'acl.allow.branches', |
287 ui.readconfig(cfg, sections=['acl.groups', 'acl.allow.branches', |
288 'acl.deny.branches', 'acl.allow', 'acl.deny']) |
288 'acl.deny.branches', 'acl.allow', 'acl.deny']) |
289 |
289 |
290 allowbranches = buildmatch(ui, None, user, 'acl.allow.branches') |
290 allowbranches = buildmatch(ui, None, user, 'acl.allow.branches') |
291 denybranches = buildmatch(ui, None, user, 'acl.deny.branches') |
291 denybranches = buildmatch(ui, None, user, 'acl.deny.branches') |
292 allow = buildmatch(ui, repo, user, 'acl.allow') |
292 allow = buildmatch(ui, repo, user, 'acl.allow') |
293 deny = buildmatch(ui, repo, user, 'acl.deny') |
293 deny = buildmatch(ui, repo, user, 'acl.deny') |