Skip to content
Snippets Groups Projects
Unverified Commit d74ff102 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

check l10n.about ability

parent 4b2fcafe
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment