lib/open_project/gitolite/gitolite_wrapper/permission_builder.rb
def build_permissions!
      #Deployment keys will keep the permissions even with non active projects
      @rewind_deploy = get_deploy_identifier(@rewind_deploy_keys)
      @read_deploy   = get_deploy_identifier(@read_deploy_keys)

      if @project.active?
        @rewind = get_identifier(@rewind_users)
        @write  = get_identifier(@write_users)
        @read   = get_identifier(@read_users)
        active_project_gitolite_access
      else
        all_read = @rewind_users + @write_users + @read_users
        @read     = get_identifier(all_read)
        @read << 'REDMINE_CLOSED_PROJECT' if @read.empty? && @read_deploy.empty?
      end

      convert_to_gitolite_format
    end
# Builds the set of permissions for all
# users and deploy keys of the repository
#
Builds the set of permissions for all
users and deploy keys of the repository
Builds the set of permissions for all users and deploy keys of the repository
def build_permissions!
      @rewind_deploy = get_deploy_identifier(@rewind_deploy_keys)
      @read_deploy   = get_deploy_identifier(@read_deploy_keys)
      if @project.active?
        @rewind = get_identifier(@rewind_users)
        @write  = get_identifier(@write_users)
        @read   = get_identifier(@read_users)
        active_project_gitolite_access
      else
        all_read = @rewind_users + @write_users + @read_users
        @read     = get_identifier(all_read)
        @read << 'REDMINE_CLOSED_PROJECT' if @read.empty? && @read_deploy.empty?
      end
      convert_to_gitolite_format
    end
def build_permissions! @rewind_deploy = get_deploy_identifier ( @rewind_deploy_keys ) @read_deploy = get_deploy_identifier ( @read_deploy_keys ) if @project . active? @rewind = get_identifier ( @rewind_users ) @write = get_identifier ( @write_users ) @read = get_identifier ( @read_users ) active_project_gitolite_access else all_read = @rewind_users + @write_users + @read_users @read = get_identifier ( all_read ) @read << 'REDMINE_CLOSED_PROJECT' if @read . empty? && @read_deploy . empty? end convert_to_gitolite_format end
Builds the set of permissions for all
users and deploy keys of the repository
Builds the set of permissions for all users and deploy keys of the repository
#Deployment keys will keep the permissions even with non active projects