You are here

function bootstrap_site_alert_update_8101 in Bootstrap Site Alert 8

Add in Default Permissions for Viewing the Site Alert.

File

./bootstrap_site_alert.install, line 38
The bootstrap_site_alert install file.

Code

function bootstrap_site_alert_update_8101() {
  user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, [
    'view bootstrap site alerts',
  ]);
  user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, [
    'view bootstrap site alerts',
  ]);
}