Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-03-17 17:15:38 +0300
committerDouwe Maan <douwe@gitlab.com>2016-03-17 17:15:38 +0300
commit21af7459ab6f3049a98cfdaa6dda8dc2336098d8 (patch)
treeb596f459936c00f12fbdc8e50dcf9febdd80391e /spec/support
parentcf2e3ff6f985c1ffdab9b795d79f792d3ea115fa (diff)
parent956e914307029dbfbdb387fd6c0749dd50935fa4 (diff)
Merge branch '4009-external-users' into 'master'
External Users The user has the rights of a public user execpt it can never create a project, group, or team. Also it cant view internal projects. Partially fix for both #4009 and #13938 (except the LDAP sync or a pattern to detect external users) ![Screen_Shot_2016-03-14_at_22.02.52](/uploads/486a84ab3acb98c6cfb71a4ec7d268e2/Screen_Shot_2016-03-14_at_22.02.52.png) See merge request !3171
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/matchers/access_matchers.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/matchers/access_matchers.rb b/spec/support/matchers/access_matchers.rb
index 558e8b1612f..4e007c777e3 100644
--- a/spec/support/matchers/access_matchers.rb
+++ b/spec/support/matchers/access_matchers.rb
@@ -15,6 +15,8 @@ module AccessMatchers
logout
when :admin
login_as(create(:admin))
+ when :external
+ login_as(create(:user, external: true))
when User
login_as(user)
else