Problem/Motivation

When using a View, a user that does not have user_access('administer profiles') or user_access("view any $bundle profile"), won't see his/her own percentage even if that user does have user_access("view own $bundle profile").
This patch adds additional checks to make sure that the user can see their own percentage if they have the proper permission.

Proposed resolution

Add 'view own' permission to the pre-render access() check, and do additional checks at render time.

API changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lendude created an issue.