Commit e1607ec4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'master' of github.com:gitlabhq/gitlabhq

parents a9661c8d 186e8ad9
language: ruby language: ruby
env: env:
- DB=mysql TRAVIS=true global:
- DB=mysql
- TRAVIS=true
matrix:
- TASK=spinach
- TASK=spec
- TASK=jasmine:ci
before_install: before_install:
- sudo apt-get install libicu-dev -y - sudo apt-get install libicu-dev -y
- gem install charlock_holmes -v="0.6.9" - gem install charlock_holmes -v="0.6.9"
...@@ -11,8 +17,9 @@ rvm: ...@@ -11,8 +17,9 @@ rvm:
- 2.0.0 - 2.0.0
services: services:
- mysql - mysql
- postgresql
before_script: before_script:
- "cp config/database.yml.$DB config/database.yml" - "cp config/database.yml.$DB config/database.yml"
- "cp config/gitlab.yml.example config/gitlab.yml" - "cp config/gitlab.yml.example config/gitlab.yml"
script: "bundle exec rake gitlab:test --trace" - "bundle exec rake db:setup"
- "bundle exec rake db:seed_fu"
script: "bundle exec rake $TASK --trace"
...@@ -6,6 +6,7 @@ v 6.3.0 ...@@ -6,6 +6,7 @@ v 6.3.0
- Show branches list (which branches contains commit) on commit page (Andrew Kumanyaev) - Show branches list (which branches contains commit) on commit page (Andrew Kumanyaev)
- Security improvements - Security improvements
- Added support for GitLab CI 4.0 - Added support for GitLab CI 4.0
- Fixed issue with 500 error when group did not exist
v 6.2.0 v 6.2.0
- Public project pages are now visible to everyone (files, issues, wik, etc.) - Public project pages are now visible to everyone (files, issues, wik, etc.)
......
...@@ -102,7 +102,7 @@ class GroupsController < ApplicationController ...@@ -102,7 +102,7 @@ class GroupsController < ApplicationController
# Dont allow unauthorized access to group # Dont allow unauthorized access to group
def authorize_read_group! def authorize_read_group!
unless projects.present? or can?(current_user, :read_group, @group) unless @group and (projects.present? or can?(current_user, :read_group, @group))
return render_404 return render_404
end end
end end
......
...@@ -78,7 +78,7 @@ module Gitlab ...@@ -78,7 +78,7 @@ module Gitlab
# * when ldap account was deactivated by change of OU membership in 'dn' # * when ldap account was deactivated by change of OU membership in 'dn'
def blocked?(dn) def blocked?(dn)
ldap = OmniAuth::LDAP::Adaptor.new(ldap_conf) ldap = OmniAuth::LDAP::Adaptor.new(ldap_conf)
ldap.connection.search(base: dn, size: 1).blank? ldap.connection.search(base: dn, scope: Net::LDAP::SearchScope_BaseObject, size: 1).blank?
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment