mirror of
https://github.com/humhub/humhub.git
synced 2025-03-04 07:08:58 +01:00
Fix: Invalid null comparison in PermissionManager caused 0 to be interpreted as default value.
This commit is contained in:
parent
5eae7668ee
commit
68964d22fc
@ -44,7 +44,7 @@ class PermissionManager extends \yii\base\Component
|
||||
$record = $this->getGroupStateRecord($groupId, $permission);
|
||||
|
||||
// No need to store default state
|
||||
if ($state === '' || $state == null) {
|
||||
if ($state === '' || $state === null) {
|
||||
if ($record !== null) {
|
||||
$record->delete();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user