diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f83c71d..a7b9dd2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ variables: ROCKY_9_IMAGE_VERSION: 20250702_171314_update_rocky9_dockerhub ROCKY_10_IMAGE_VERSION: 20250908_164454_rocky10_first DEBIAN_12_IMAGE_VERSION: 20250908_154742_refresh_dependencies - DEBIAN_13_IMAGE_VERSION: 20260120_152506_update_packages + DEBIAN_13_IMAGE_VERSION: 20260204_090147_update_packages PHP_REDIS_REMI_VERSION: php-pecl-redis6-6.1.0-1 PHP_IGBINARY_REMI_VERSION: php-pecl-igbinary-3.2.16-2 PHP_MSGPACK_REMI_VERSION: php-pecl-msgpack-2.2.0-3 diff --git a/flexiapi/app/Http/Controllers/Api/Admin/Account/VoicemailController.php b/flexiapi/app/Http/Controllers/Api/Admin/Account/VoicemailController.php index 42bf3b2..47ed129 100644 --- a/flexiapi/app/Http/Controllers/Api/Admin/Account/VoicemailController.php +++ b/flexiapi/app/Http/Controllers/Api/Admin/Account/VoicemailController.php @@ -18,6 +18,11 @@ class VoicemailController extends Controller public function store(Request $request, int $accountId) { $account = Account::findOrFail($accountId); + + if ($account->email == null) { + abort(422, 'The account should be reachable by email'); + } + $request->validate([ 'sip_from' => 'nullable|starts_with:sip', 'content_type' => [ diff --git a/flexiapi/lang/fr.json b/flexiapi/lang/fr.json index ab99cfd..95848a4 100644 --- a/flexiapi/lang/fr.json +++ b/flexiapi/lang/fr.json @@ -81,6 +81,7 @@ "Dictionary": "Dictionnaire", "Display name": "Nom d'affichage", "Domain": "Domaine", + "Domain used if empty": "Le domaine est utilisé si vide", "Don’t have the app yet?": "Vous n’avez pas encore l’application ?", "Download Linphone" : "Télécharger Linphone", "Edit": "Éditer", @@ -136,6 +137,7 @@ "Meeting": "Réunions", "Min characters to search": "Nombre minimum de caractères pour chercher", "Month": "Mois", + "Must be different than domain": "Doit être différent du domaine", "My Account": "Mon Compte", "My Space": "Mon Espace", "Name": "Nom", diff --git a/flexiapi/resources/views/admin/account/external/show.blade.php b/flexiapi/resources/views/admin/account/external/show.blade.php index 403f2c9..76bfdfe 100644 --- a/flexiapi/resources/views/admin/account/external/show.blade.php +++ b/flexiapi/resources/views/admin/account/external/show.blade.php @@ -54,18 +54,18 @@
- + @include('parts.errors', ['name' => 'realm'])
- +
- +