Home

>

Tools

>

Strapi

>

Releases

>

5.0.5

Strapi Release: 5.0.5

Tag Name: v5.0.5

Release Date: 10/10/2024

Strapi LogoStrapi

Open-source headless CMS built with Node.js. Provides developers with complete freedom in choosing their favorite tools and frameworks for frontend development.

TL;DR

Strapi v5.0.5 is a minor patch release that fixes an issue with user role updates when connecting relations. This ensures that user permissions are correctly maintained when managing relational data in the CMS.

Highlight of the Release

    • Fixed issue with user role updates when connecting relations
    • Improved reliability of user permission management

Migration Guide

No migration is required for this patch release. You can upgrade directly from v5.0.4 to v5.0.5 without any additional steps.

Upgrade Recommendations

This is a recommended upgrade for all Strapi v5.0.x users who work with relational data and user permissions. The patch fixes an important issue with user role updates when connecting relations.

To upgrade:

npm install [email protected]

or

yarn upgrade [email protected]

Bug Fixes

User Role Update Fix

Fixed an issue where IDs were not being sent when connecting relations, which affected user role updates. This bug was causing problems with the Users & Permissions plugin when managing relational data and updating user roles simultaneously.

The fix ensures that proper IDs are now sent when connecting relations, allowing the system to correctly update user roles in the Users & Permissions plugin. This resolves inconsistencies that could occur when managing user permissions in relation to connected content.

PR: #21726 by @Marc-Roig

New Features

No new features were introduced in this patch release.

Security Updates

No security fixes were included in this patch release.

Performance Improvements

No specific performance improvements were included in this patch release.

Impact Summary

This patch release addresses a specific bug related to user role updates when connecting relations in Strapi. While the change is focused on a single issue, it has important implications for administrators and developers who manage user permissions in conjunction with relational data.

The fix ensures that the Users & Permissions plugin correctly handles user role updates when relations are being connected, which improves the overall reliability of the permission system. This is particularly important for applications that heavily rely on proper user role management and have complex relational data structures.

The impact is primarily positive, resolving an inconsistency that could lead to incorrect permission assignments. No breaking changes are introduced, making this a safe upgrade for all Strapi v5.0.x users.

Full Release Notes

What's Changed

  • fix: send ids when connecting relations to update u&p user role by @Marc-Roig in #21726

Statistics:

File Changed43
Line Additions43
Line Deletions43
Line Changes86
Total Commits1

User Affected:

  • Can now properly update user roles when connecting relations
  • Will experience more reliable user permission management

Contributors:

Marc-Roig