Browse Source

Merge branch 'dev'

master
Guillaume 3 years ago
parent
commit
86be6635e3
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