This method could be refactored to this:
```ruby
def action_allowed?
  current_user.role.name.eql?("Administrator") || current_user.role.name.eql?("Instructor") || current_user.role.name.eql?("Teaching Assistant")
end
```