From 5e66c6568ba2a528e037eaf9d466cfb489b52891 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Fri, 7 Jul 2017 16:09:30 +0200 Subject: fix specs --- lib/api/users.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api/users.rb') 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 -- cgit v1.2.3