Problem/Motivation

When accessing the feed listing page when you only may view feeds of certain types, the following errors are displayed:

Notice: Undefined index: title in template_preprocess_links() (line 690 of core/includes/theme.inc).
Notice: Undefined index: title in template_preprocess_links() (line 746 of core/includes/theme.inc).

This is because FeedListBuilder does not check if the current user may edit feeds.

Additionally, I found two related issues as well:

  1. The user can view feeds of all types on the listing page, even those he/she isn't supposed to see.
  2. There's a difference in the permission that is needed to view the feed listing page with or without Views installed.

Proposed resolution

  • Set the permission for viewing the feed listing to "access feed overview", just as is the case for the view "feeds_feed".
  • In FeedListBuilder, add an access check for viewing feeds.
  • In FeedListBuilder, add an access check for updating feeds.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Patch will follow.

Comments

MegaChriz created an issue. See original summary.

megachriz’s picture

megachriz’s picture

When someone has no permission to view a feed, but does have permission to perform an operation on it, only show the feed label and do not display a link to the feed.

Does not work when using Views, though.

megachriz’s picture

Corrections in code comments and explicit check that the label for a feed is not displayed as a link when an user has no view permission for that feed.

  • MegaChriz committed e1f63b4 on 8.x-3.x
    Issue #3028959 by MegaChriz: Fixed errors that occurred when viewing...
megachriz’s picture

Title: Errors when showing feed listing page with limited privileges » Errors when viewing feed listing page with limited privileges
Status: Needs review » Fixed

Committed #5.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.