- Issue created by @anand.panure
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.
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.
Here's the rewritten text with the correct format and an explanation:
Active
2.2
Code