groups/modules/commons/commons_posts/commons_posts.features.user_permission.inc
Marton Kiss 8ac59801be Refactor commons build process
Update commons modules to release 7.12, and move the codebase under
modules/commons instead of constant fetching from remote repository.
The commons.make file removed so it is not required to rebuild
groups distribution.

Change-Id: I3be393ba1af34427e2915b18ab1ad718fd4e54db
2014-05-28 15:58:33 +02:00

63 lines
1.6 KiB
PHP

<?php
/**
* @file
* commons_posts.features.user_permission.inc
*/
/**
* Implements hook_user_default_permissions().
*/
function commons_posts_user_default_permissions() {
$permissions = array();
// Exported permission: 'create post content'.
$permissions['create post content'] = array(
'name' => 'create post content',
'roles' => array(
'administrator' => 'administrator',
'authenticated user' => 'authenticated user',
),
'module' => 'node',
);
// Exported permission: 'delete any post content'.
$permissions['delete any post content'] = array(
'name' => 'delete any post content',
'roles' => array(
'administrator' => 'administrator',
),
'module' => 'node',
);
// Exported permission: 'delete own post content'.
$permissions['delete own post content'] = array(
'name' => 'delete own post content',
'roles' => array(
'administrator' => 'administrator',
'authenticated user' => 'authenticated user',
),
'module' => 'node',
);
// Exported permission: 'edit any post content'.
$permissions['edit any post content'] = array(
'name' => 'edit any post content',
'roles' => array(
'administrator' => 'administrator',
),
'module' => 'node',
);
// Exported permission: 'edit own post content'.
$permissions['edit own post content'] = array(
'name' => 'edit own post content',
'roles' => array(
'administrator' => 'administrator',
'authenticated user' => 'authenticated user',
),
'module' => 'node',
);
return $permissions;
}