Skip to content

Commit

Permalink
Fix editing a role permissions erase all permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Jan 30, 2024
1 parent 316128c commit 33e5515
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [5.0.2](https://github.com/userfrosting/sprinkle-admin/compare/5.0.1...5.0.2)
- Fix editing a role permissions erase all permissions - Fix [#1240](https://github.com/userfrosting/UserFrosting/issues/1240)

## [5.0.1](https://github.com/userfrosting/sprinkle-admin/compare/5.0.0...5.0.1)
- Update success message when admin resets password for a user - Fix [#852](https://github.com/userfrosting/UserFrosting/issues/852)

Expand Down
2 changes: 1 addition & 1 deletion app/src/Controller/Role/RoleUpdateFieldAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected function handle(
if (isset($put[$fieldName])) {
$fieldData = $put[$fieldName];
} elseif ($fieldName === 'permissions') {
$fieldData = [];
$fieldData = $put['value'];
} else {
$e = new MissingRequiredParamException();
$e->setParam($fieldName);
Expand Down

0 comments on commit 33e5515

Please sign in to comment.