Media access issue if user part of multiple groups

Created on 30 May 2024, 28 days ago

Problem/Motivation

The Drupal Group Media module has an issue where a user with access to multiple groups (e.g., User1 has access to Group1 and Group2) can see media from both groups while editing a page in Group1. Ideally, the user should only see media linked to Group1. This issue needs to be addressed to ensure that users can only access media within the groups they are currently working in.

Steps to reproduce

Proposed resolution

1. Create two groups, Group1 and Group2.
2. Add User1 to both Group1 and Group2.
3. Ensure both groups have their own media items.
4. Log in as User1.
5. Edit a page that belongs to Group1.
6. Open the media library while editing the page.

Expected behavior
: User1 should only see media linked to Group1.

Actual behavior: User1 sees media from both Group1 and Group2.

Remaining tasks

User interface changes

API changes

Data model changes

Here's the rewritten text with the correct format and an explanation:

πŸ› Bug report
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States anand.panure

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

Comments & Activities

Production build 0.69.0 2024