Permalink
Browse files

there's no reason regular users can't search the list of users

  • Loading branch information...
1 parent d575f67 commit 5bd48196e9491a778815c9555c3f83e2242a3eb7 @rizen rizen committed Jan 12, 2014
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/Wing/Rest/User.pm
View
@@ -8,7 +8,6 @@ use Wing::Rest;
get '/api/user' => sub {
my $user = get_user_by_session_id();
- ouch(450, 'You must be an administrator to get a list of all users.') unless $user->admin;
my $users = site_db()->resultset('User')->search({ -or => {
username => { like => '%'.params->{query}.'%'},
email => { like => '%'.params->{query}.'%'},

0 comments on commit 5bd4819

Please sign in to comment.