• briankabiro's avatar
    Add current_user check in events api · d5b17111
    briankabiro authored
    The API returns a 500 error when scope is supplied and current_user
    is not present. This is because a user's projects are used in the
    query that returns all events.
    
    This change adds a check to confirm that current_user is provided
    before trying to run the query when scope is passed
    d5b17111
events_finder.rb 3.23 KB