diff --git a/admin/group_list.php b/admin/group_list.php index 69edcb02a..ec0a06191 100644 --- a/admin/group_list.php +++ b/admin/group_list.php @@ -41,7 +41,7 @@ check_status(ACCESS_ADMINISTRATOR); // | delete a group | // +-----------------------------------------------------------------------+ -if (isset($_GET['delete']) and is_numeric($_GET['delete'])) +if (isset($_GET['delete']) and is_numeric($_GET['delete']) and !is_adviser()) { // destruction of the access linked to the group $query = ' @@ -84,7 +84,7 @@ DELETE // | add a group | // +-----------------------------------------------------------------------+ -if (isset($_POST['submit_add'])) +if (isset($_POST['submit_add']) and !is_adviser()) { if (empty($_POST['groupname'])) { @@ -126,7 +126,7 @@ INSERT INTO '.GROUPS_TABLE.' // | toggle is default group property | // +-----------------------------------------------------------------------+ -if (isset($_GET['toggle_is_default']) and is_numeric($_GET['toggle_is_default'])) +if (isset($_GET['toggle_is_default']) and is_numeric($_GET['toggle_is_default']) and !is_adviser()) { $query = ' SELECT name, is_default @@ -157,7 +157,8 @@ $template->set_filenames(array('group_list' => 'admin/group_list.tpl')); $template->assign_vars( array( - 'F_ADD_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=group_list' + 'F_ADD_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=group_list', + 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=group_list', ) ); diff --git a/language/en_UK.iso-8859-1/help/group_list.html b/language/en_UK.iso-8859-1/help/group_list.html new file mode 100644 index 000000000..e76094cae --- /dev/null +++ b/language/en_UK.iso-8859-1/help/group_list.html @@ -0,0 +1,22 @@ +
This is the place where you can manage defined groups.
+ +Administrator can add groups.
+ +The list allows for each element to:
+ + +Default groups are groups associated automatically to new user.
\ No newline at end of file diff --git a/language/fr_FR.iso-8859-1/help/group_list.html b/language/fr_FR.iso-8859-1/help/group_list.html new file mode 100644 index 000000000..321a87e3e --- /dev/null +++ b/language/fr_FR.iso-8859-1/help/group_list.html @@ -0,0 +1,21 @@ +Manipulation des propriétés des groupes définis.
+ +L'administrateur peut ajouter des groupes.
+ +La liste permet pour chaque groupe:
+ +Les groupes par défaut sont les groupes associés automatiquement à chaque nouvel utilisateur.
\ No newline at end of file diff --git a/template/yoga/admin/group_list.tpl b/template/yoga/admin/group_list.tpl index 0424456e5..864efade7 100644 --- a/template/yoga/admin/group_list.tpl +++ b/template/yoga/admin/group_list.tpl @@ -1,5 +1,10 @@ -