agenda encore groupes du core

This commit is contained in:
Fred Tempez 2024-08-29 21:45:08 +02:00
parent fcb5deb2fa
commit f654615ec5
2 changed files with 4 additions and 4 deletions

View File

@ -1126,13 +1126,13 @@ class agenda extends common
) {
switch ($this->getUser('group')) {
case 0:
array_splice(self::$groupe, 1);
array_splice(self::$groupPublics, 1);
break;
case 1:
array_splice(self::$groupe, 2);
array_splice(self::$groupPublics, 2);
break;
case 2:
array_splice(self::$groupe, 3);
array_splice(self::$groupPublics, 3);
break;
}
}

View File

@ -34,7 +34,7 @@ if(! is_dir($module::DATAMODULE.'data/'.$this->getUrl(0))){ $readonly = true;}el
<div class="block">
<h4>Gérer les droits</h4>
<div class="col6">
<?php echo template::select('config_droit_creation', $module::$groupe, [
<?php echo template::select('config_droit_creation', $module::$groupNews, [
'help' => 'Vous sélectionner ici le groupe à partir duquel il sera possible de créer un évènement dans l\'agenda',
'id' => 'config_droit_creation',
'disabled' => $readonly,