
| Current Path : /var/www/html/pallets/web/core/modules/update/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/pallets/web/core/modules/update/update.post_update.php |
<?php
/**
* @file
* Post update functions for Update Manager.
*/
/**
* Add 'view update notifications' to roles with 'administer site configuration'.
*/
function update_post_update_add_view_update_notifications_permission(&$sandbox) {
$roles = user_roles(FALSE, 'administer site configuration');
foreach ($roles as $role) {
$role->grantPermission('view update notifications')->save();
}
}