diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c3ce06..af6445a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/app/src/Controller/Role/RoleUpdateFieldAction.php b/app/src/Controller/Role/RoleUpdateFieldAction.php index b3f2b5f..a5750df 100644 --- a/app/src/Controller/Role/RoleUpdateFieldAction.php +++ b/app/src/Controller/Role/RoleUpdateFieldAction.php @@ -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);