For example, if the content type Article is exported and also its dependencies we should have:

/**
 * @file
 * content_type.article.inc
 */
$data = ..

$dependencies = ...

$optional = array(
  ...
  'permission.create_article_content' => 'permission.create_article_content',
  'permission.edit_own_article_content' => 'permission.edit_own_article_content',
  'permission.edit_any_article_content' => 'permission.edit_any_article_content',
  'permission.delete_own_article_content' => 'permission.delete_own_article_content',
  'permission.delete_any_article_content' => 'permission.delete_any_article_content',
);

$modules = ...

And for each permission configuration file, we should have:

/**
 * @file
 * permission.edit_any_article_content.inc
 */

$data = array(
  'permission' => 'edit any article content',
  'roles' => array(
    0 => 'administrator',
  ),
);

$dependencies = array(
  'content_type.article' =>  'content_type.article',
); 

$optional = array();

$modules = array(
  0 => 'node',
);

But at this moment, the permissions file are created with the $dependencies as an empty array.

CommentFileSizeAuthor
#1 1807620.permissions-dependencies.1.patch2.81 KBdagmar

Comments

dagmar’s picture

Status: Active » Needs review
StatusFileSize
new2.81 KB

This fix the issue, let see what the bot think.

dagmar’s picture

Status: Needs review » Fixed

Committed 7ada71b

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.