Improved article#index view and simplified if conditions

This should remove your deprecation notice.

This way a user needs at least :view_kb_articles and adds the additional if the user has the corresponding rights.