From d74ff102f50e97015c23128343df7fdc4ddc42ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Fri, 11 Oct 2024 15:04:26 +0200
Subject: [PATCH] check l10n.about ability

---
 app/controllers/admin/communication/contents_controller.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/controllers/admin/communication/contents_controller.rb b/app/controllers/admin/communication/contents_controller.rb
index 34d69ab60..57d6351b0 100644
--- a/app/controllers/admin/communication/contents_controller.rb
+++ b/app/controllers/admin/communication/contents_controller.rb
@@ -19,6 +19,7 @@ class Admin::Communication::ContentsController < Admin::Communication::Applicati
       university: current_university,
       mandatory_module: Contentful
     )
-    raise_403_unless can?(:edit, @about)
+    # We check ability on localization's about
+    raise_403_unless can?(:update, @about.about)
   end
 end
\ No newline at end of file
-- 
GitLab