Browse Source

Correctif UserGroup

dev
Guillaume 3 years ago
parent
commit
13e824a72a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/models/User.php

+ 2
- 2
common/models/User.php View File

@@ -785,9 +785,9 @@ class User extends ActiveRecordCommon implements IdentityInterface
public function belongsToUserGroup($userGroupId)
{
if(!$this->userUserGroup) {
$this->userUserGroup = UserUserGroup::searchAll([
$this->populateRelation('userUserGroup', UserUserGroup::searchAll([
'id_user' => $this->id
]) ;
])) ;
}

if($this->userUserGroup) {

Loading…
Cancel
Save