Skip to content

Commit

Permalink
Add support for cleaning repo permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
simonoff authored and wingrunr21 committed Sep 27, 2011
1 parent 7893417 commit 83dc560
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gitolite/config/repo.rb
Expand Up @@ -15,6 +15,10 @@ def initialize(name)
@config = {}
end

def clean_permissions
@permissions = Array.new.push(@perm_hash_lambda.call)
end

def add_permission(perm, refex = "", *users)
if ALLOWED_PERMISSIONS.include? perm
#Handle deny rules
Expand Down

0 comments on commit 83dc560

Please sign in to comment.