fixed a bug when handling ldap_auth_mode 2 in LdapLoginModel.

added svn_for_members_only and made relevant changes to AccessHandler.pm
This commit is contained in:
2014-05-25 06:53:16 +00:00
parent acdf17ccb9
commit daaf42b678
8 changed files with 20 additions and 4 deletions

View File

@ -187,6 +187,12 @@ allow_set_time_limit = "no"
;------------------------------------------------------------------------------
signin_for_code_search = "yes"
;------------------------------------------------------------------------------
; For a public project, subversion access is limited to members only when
; this item is set to yes. When no, this access is open to everyone.
;------------------------------------------------------------------------------
svn_for_members_only = "yes"
;------------------------------------------------------------------------------
; customized footer
;------------------------------------------------------------------------------

View File

@ -71,7 +71,9 @@ sub get_config
database_password => $cfg->param ('database_password'),
database_name => $cfg->param ('database_name'),
database_driver => $cfg->param ('database_driver'),
database_prefix => $cfg->param ('database_prefix')
database_prefix => $cfg->param ('database_prefix'),
svn_for_members_only => $cfg->param ('svn_for_members_only')
};
return $config;
@ -285,7 +287,10 @@ sub __handler
}
elsif ($public >= 1)
{
return Apache2::Const::OK;
if (lc($cfg->{svn_for_members_only}) eq 'no')
{
return Apache2::Const::OK;
}
}
}