View own membership requests

Created on 8 August 2022, over 2 years ago
Updated 13 July 2023, over 1 year ago

Problem/Motivation

I would like to display the user's applications for each user. Based on the code only users with 'administer membership requests' permission can view the requests.

protected function viewAccess(GroupContentInterface $group_content, AccountInterface $account) {
    return GroupAccessResult::allowedIfHasGroupPermission($group_content->getGroup(), $account, 'administer membership requests');
  }

Is there any way to grant access to users who created the request?

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇭🇺Hungary gabor.szabolcs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024