Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
pcp_allow_view_percentage_with_view_owm.patch | 1.75 KB | Lendude | |
Comments