From 63e53198d95fb43c92fc94f3467ce1df11a5b4ea Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Thu, 12 Feb 2026 11:13:45 +1100 Subject: [PATCH] [SD-1553] Added logic to hide content collection old component for non admin users. --- .../tide_content_collection/tide_content_collection.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tide_api/modules/tide_content_collection/tide_content_collection.module b/modules/tide_api/modules/tide_content_collection/tide_content_collection.module index f6c3458f5..e8650fd1a 100644 --- a/modules/tide_api/modules/tide_content_collection/tide_content_collection.module +++ b/modules/tide_api/modules/tide_content_collection/tide_content_collection.module @@ -27,7 +27,7 @@ function tide_content_collection_paragraph_access(ParagraphInterface $entity, $o */ function tide_content_collection_paragraph_create_access(AccountInterface $account = NULL, array $context = [], $entity_bundle = NULL) { $type = $entity_bundle; - if ($type === 'content_collection' && !$account->hasPermission('access content_collection paragraph')) { + if (($type === 'content_collection' || $type === 'content_collection_enhanced') && !$account->hasPermission('access content_collection paragraph')) { return AccessResult::forbidden()->cachePerPermissions(); } return AccessResult::neutral()->cachePerPermissions();