Skip to content
Snippets Groups Projects

Update paragraphs.module

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -220,7 +220,7 @@ function paragraphs_item_access($op, $entity, $account, $entity_type) {
/**
* Implements hook_paragraphs_item_access().
*/
function paragraphs_paragraphs_item_access(ParagraphsItemEntity $entity, $op, $account) {
function paragraphs_paragraphs_item_access(ParagraphsItemEntity $entity = NULL, $op, $account) {
$permissions = &drupal_static(__FUNCTION__, array());
$parent_permissions = &drupal_static(__FUNCTION__ . '_parents', array());
Loading