filtrage admin
This commit is contained in:
parent
c4b810ec01
commit
fec2494a24
@ -387,7 +387,9 @@ class course extends common
|
|||||||
switch ($groupId) {
|
switch ($groupId) {
|
||||||
case "-1":
|
case "-1":
|
||||||
case "0":
|
case "0":
|
||||||
|
break;
|
||||||
case "3":
|
case "3":
|
||||||
|
self::$courseGroups['30'] = 'Administrateur';
|
||||||
break;
|
break;
|
||||||
case "1":
|
case "1":
|
||||||
case "2":
|
case "2":
|
||||||
|
@ -442,7 +442,9 @@ class user extends common
|
|||||||
switch ($groupId) {
|
switch ($groupId) {
|
||||||
case "-1":
|
case "-1":
|
||||||
case "0":
|
case "0":
|
||||||
|
break;
|
||||||
case "3":
|
case "3":
|
||||||
|
self::$courseGroups['30'] = 'Administrateur';
|
||||||
break;
|
break;
|
||||||
case "1":
|
case "1":
|
||||||
case "2":
|
case "2":
|
||||||
@ -497,8 +499,8 @@ class user extends common
|
|||||||
$this->getData(['user', $userId, 'firstname']) . ' ' . $userLastNames,
|
$this->getData(['user', $userId, 'firstname']) . ' ' . $userLastNames,
|
||||||
helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])]),
|
helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])]),
|
||||||
empty($this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']))
|
empty($this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']))
|
||||||
? helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])])
|
? helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])])
|
||||||
: $this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']),
|
: $this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']),
|
||||||
template::button('userEdit' . $userId, [
|
template::button('userEdit' . $userId, [
|
||||||
'href' => helper::baseUrl() . 'user/edit/' . $userId,
|
'href' => helper::baseUrl() . 'user/edit/' . $userId,
|
||||||
'value' => template::ico('pencil'),
|
'value' => template::ico('pencil'),
|
||||||
|
Loading…
Reference in New Issue
Block a user