Refresh cache after set a permission (#6634)

This commit is contained in:
Yuriy Bakhtin 2023-10-26 17:21:50 +02:00 committed by GitHub
parent 6376b93ace
commit a5b62b6b0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ HumHub Changelog
- Enh #6623: Add a hint in the "Dropdown space order" settings to inform that a manual sort is always applied first
- Enh #6626: Content state flag "was published"
- Enh #6628: Add self test check: "Mobile App - Push Service"
- Fix #6634: Refresh cache after set a permission
1.15.0-beta.2 (October 5, 2023)
-------------------------------

View File

@ -183,7 +183,9 @@ class PermissionManager extends Component
$record->class = get_class($permission);
$record->group_id = $groupId;
$record->state = $state;
$record->save();
if ($record->save()) {
$this->clear();
}
}
/**