diff options
author | James Lopez <james@jameslopez.es> | 2017-07-07 16:09:30 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-07-07 16:09:30 +0200 |
commit | 5e66c6568ba2a528e037eaf9d466cfb489b52891 (patch) | |
tree | 13c36e19f5b6c2ff550090be5867d76256227d78 /lib | |
parent | 377244dd45773a5d587eaf3b75ba64702229e34e (diff) | |
download | gitlab-ce-5e66c6568ba2a528e037eaf9d466cfb489b52891.tar.gz |
fix specs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/users.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index 47a44ba9598..c469751c31c 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -57,7 +57,7 @@ module API get do authenticated_as_admin! if params[:external].present? || (params[:extern_uid].present? && params[:provider].present?) - unless current_user.admin? + unless current_user&.admin? params.except!(:created_after, :created_before) end |