mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add the translations for Users, and add the new permissions.
This commit is contained in:
@@ -102,6 +102,22 @@
|
|||||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
$y++;
|
$y++;
|
||||||
|
$apps[$x]['permissions'][$y]['name'] = "contact_user_view";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
|
$y++;
|
||||||
|
$apps[$x]['permissions'][$y]['name'] = "contact_user_add";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
|
$y++;
|
||||||
|
$apps[$x]['permissions'][$y]['name'] = "contact_user_edit";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
|
$y++;
|
||||||
|
$apps[$x]['permissions'][$y]['name'] = "contact_user_delete";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
|
$y++;
|
||||||
$apps[$x]['permissions'][$y]['name'] = "contact_email_view";
|
$apps[$x]['permissions'][$y]['name'] = "contact_email_view";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
|
|||||||
@@ -1033,6 +1033,16 @@ $text['label-import_delimiter']['sv-se'] = "Avgränsare";
|
|||||||
$text['label-import_delimiter']['de-at'] = "Trennzeichen";
|
$text['label-import_delimiter']['de-at'] = "Trennzeichen";
|
||||||
$text['label-import_delimiter']['he'] = "";
|
$text['label-import_delimiter']['he'] = "";
|
||||||
|
|
||||||
|
$text['label-users']['en-us'] = "Users";
|
||||||
|
$text['label-users']['es-cl'] = "Usuarios";
|
||||||
|
$text['label-users']['pt-pt'] = "Utilizadores";
|
||||||
|
$text['label-users']['fr-fr'] = "Utilisateurs";
|
||||||
|
$text['label-users']['pt-br'] = "Usuários";
|
||||||
|
$text['label-users']['pl'] = "Użytkownicy";
|
||||||
|
$text['label-users']['sv-se'] = "Användare";
|
||||||
|
$text['label-users']['uk'] = "Користувачі";
|
||||||
|
$text['label-users']['de-at'] = "Benutzer";
|
||||||
|
|
||||||
$text['label-groups']['en-us'] = "Groups";
|
$text['label-groups']['en-us'] = "Groups";
|
||||||
$text['label-groups']['es-cl'] = "Grupos";
|
$text['label-groups']['es-cl'] = "Grupos";
|
||||||
$text['label-groups']['pt-pt'] = "Grupos";
|
$text['label-groups']['pt-pt'] = "Grupos";
|
||||||
@@ -2108,6 +2118,16 @@ $text['description-import_delimiter']['sv-se'] = "Välj avgränsare (comma or pi
|
|||||||
$text['description-import_delimiter']['de-at'] = "Wählen Sie das Trennzeichen (Beistrich oder Wagrechter Strich)";
|
$text['description-import_delimiter']['de-at'] = "Wählen Sie das Trennzeichen (Beistrich oder Wagrechter Strich)";
|
||||||
$text['description-import_delimiter']['he'] = "";
|
$text['description-import_delimiter']['he'] = "";
|
||||||
|
|
||||||
|
$text['description-users']['en-us'] = "Assign additional users as administrators of this conference room.";
|
||||||
|
$text['description-users']['es-cl'] = "Asignar usuarios adicionales como administradores de esta sala de conferencia.";
|
||||||
|
$text['description-users']['pt-pt'] = "Atribuir utilizadores adicionais como administradores da sala de conferência.";
|
||||||
|
$text['description-users']['fr-fr'] = "Ajouter des utilisateurs comme administrateurs des cette salle de conférence.";
|
||||||
|
$text['description-users']['pt-br'] = "Atribuir usuários adicionais como administradores da sala de conferência. ";
|
||||||
|
$text['description-users']['pl'] = "'Dodaj dodatkowych użytkowników jako administratorów tego pokoju konferencyjnego.";
|
||||||
|
$text['description-users']['sv-se'] = "Lägg till ytterligare användare som administratörer för detta konferensrum.";
|
||||||
|
$text['description-users']['uk'] = "Зв'язати додаткових користувачів як адміністраторів цього конференц-залу.";
|
||||||
|
$text['description-users']['de-at'] = "Weisen Sie diesem Konferenzraum weitere Administratoren zu. ";
|
||||||
|
|
||||||
$text['description-groups']['en-us'] = "Contacts assigned to a group are only visible to users in the group. Contacts not assigned to a group will be visible to all users in the domain.";
|
$text['description-groups']['en-us'] = "Contacts assigned to a group are only visible to users in the group. Contacts not assigned to a group will be visible to all users in the domain.";
|
||||||
$text['description-groups']['es-cl'] = "Contactos asignados a un grupo sólo son visibles para los usuarios del grupo. Los contactos no asignados a un grupo serán visibles para todos los usuarios del dominio.";
|
$text['description-groups']['es-cl'] = "Contactos asignados a un grupo sólo son visibles para los usuarios del grupo. Los contactos no asignados a un grupo serán visibles para todos los usuarios del dominio.";
|
||||||
$text['description-groups']['pt-pt'] = "Contatos atribuídos a um grupo só são visíveis para os usuários do grupo. Contatos não atribuídos a um grupo será visível para todos os usuários no domínio.";
|
$text['description-groups']['pt-pt'] = "Contatos atribuídos a um grupo só são visíveis para os usuários do grupo. Contatos não atribuídos a um grupo será visível para todos os usuários no domínio.";
|
||||||
|
|||||||
@@ -285,10 +285,10 @@ else {
|
|||||||
unset($prep_statement, $sql);
|
unset($prep_statement, $sql);
|
||||||
|
|
||||||
//get the users assigned to this contact
|
//get the users assigned to this contact
|
||||||
$sql = "SELECT * FROM v_contact_users as u, v_contact_users as c ";
|
$sql = "SELECT * FROM v_contacts as u, v_contact_users as c ";
|
||||||
$sql .= "where u.user_uuid = c.user_uuid ";
|
$sql .= "where u.user_uuid = c.user_uuid ";
|
||||||
$sql .= "and m.domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
$sql .= "and u.domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
||||||
$sql .= "and m.contact_uuid = '".$contact_uuid."' ";
|
$sql .= "and u.contact_uuid = '".$contact_uuid."' ";
|
||||||
$sql .= "order by u.username asc ";
|
$sql .= "order by u.username asc ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
@@ -640,7 +640,7 @@ else {
|
|||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
if (if_group("superadmin") || if_group("admin")) {
|
if (permission_exists('contact_user_view')) {
|
||||||
echo " <tr>";
|
echo " <tr>";
|
||||||
echo " <td class='vncell' valign='top'>".$text['label-users']."</td>";
|
echo " <td class='vncell' valign='top'>".$text['label-users']."</td>";
|
||||||
echo " <td class='vtable' align='left'>";
|
echo " <td class='vtable' align='left'>";
|
||||||
|
|||||||
Reference in New Issue
Block a user