Skip to content

Commit

Permalink
Merge pull request #2994 from ec-europa/release-2.6.16
Browse files Browse the repository at this point in the history
NEPT-2934: Release 2.6.16
  • Loading branch information
Fefaine authored Jul 1, 2021
2 parents 681d365 + 5e2c6ea commit c23964c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ must make a formal request to the **COMM EUROPA MANAGEMENT (CEM)**.
We want DGT translations to be automatically accepted by our website: YES/NO
Contact person in charge of the translation requests: .............
Contact person at DGT: .............
Contact "responsible" person (EC official accountable for the requests) ............
Thank you,
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function nexteuropa_piwik_enable() {
// Define permissions for role.
$piwik_admin_permissions = array(
'administer nexteuropa_piwik' => TRUE,
'administer site configuration' => TRUE,
);
// Grant the permissions to PIWIK administrator role.
user_role_change_permissions($piwik_admin_role->rid, $piwik_admin_permissions);
Expand All @@ -113,3 +114,12 @@ function nexteuropa_piwik_update_7101() {
_nexteuropa_piwik_get_schema_array()
);
}

/**
* Add the Administer site configuration permission to the role.
*/
function nexteuropa_piwik_update_7102() {
$piwik_administrator = user_role_load_by_name('PIWIK administrator');
$rid = $piwik_administrator->rid;
user_role_grant_permissions($rid, array('administer site configuration'));
}

0 comments on commit c23964c

Please sign in to comment.