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

public function belongsToUserGroup($userGroupId) public function belongsToUserGroup($userGroupId)
{ {
if(!$this->userUserGroup) { if(!$this->userUserGroup) {
$this->userUserGroup = UserUserGroup::searchAll([
$this->populateRelation('userUserGroup', UserUserGroup::searchAll([
'id_user' => $this->id 'id_user' => $this->id
]) ;
])) ;
} }


if($this->userUserGroup) { if($this->userUserGroup) {

Loading…
Cancel
Save