diff options
author | Stan Hu <stanhu@gmail.com> | 2015-06-19 21:18:24 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-06-19 21:23:46 -0700 |
commit | e785b9d2e24ca7e16e8ff3fa46f2e2b82478be9b (patch) | |
tree | 06f762b77dee4c8a05fecd4dd42d0b1dfefee5e5 /features/steps/shared/authentication.rb | |
parent | 74a6732c0dfc1416cad382203544d9c4d6246f58 (diff) | |
download | gitlab-ce-e785b9d2e24ca7e16e8ff3fa46f2e2b82478be9b.tar.gz |
Fix Error 500 when one user attempts to access a personal, internal snippet
Closes #1815
Diffstat (limited to 'features/steps/shared/authentication.rb')
-rw-r--r-- | features/steps/shared/authentication.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/shared/authentication.rb b/features/steps/shared/authentication.rb index 3c0f2a9406a..735e0ef6108 100644 --- a/features/steps/shared/authentication.rb +++ b/features/steps/shared/authentication.rb @@ -28,6 +28,10 @@ module SharedAuthentication logout end + step "I logout directly" do + logout_direct + end + def current_user @user || User.first end |