```ruby
class UsersController < ApplicationController

  def index
    @users = User.all
  end

  def show
    if user_signed_in?
      @user = User.find(params[:id])
    else
      @error = "You must be logged in to view a users profile"
    end
  end

end
```

Add logic to always view a critics profile
user
```ruby
class UsersController < ApplicationController

  def index
    @users = User.all
  end

  def show
    @user = User.find(params[:id])
    if @user.critic ||  user_signed_in?
      @user
    else
      @error = "You must be logged in to view a users profile"
    end
  end

end
```
assistant