Skip to content

Commit 31665d5

Browse files
authored
Merge pull request #68 from ASUWebPlatforms/WS2-2575-undo-update-hook
WS2-2223 / 2575 - undo update hook
2 parents 2674019 + e8e90a5 commit 31665d5

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

upstream-configuration/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@
6868
"config": {
6969
"sort-packages": true
7070
},
71-
"version": "2.15.2"
71+
"version": "2.15.3"
7272
}

web/profiles/webspark/webspark/webspark.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Webspark
22
type: profile
33
core_version_requirement: ^9.0 || ^10
44
description: 'ASU custom profile.'
5-
version: 2.15.2
5+
version: 2.15.3
66
distribution:
77
name: 'Webspark'
88
install:

web/profiles/webspark/webspark/webspark.install

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -746,16 +746,20 @@ function webspark_update_10013(&$sandbox): void {
746746
/**
747747
* WS2-2223 - Changed comments permissions and register: admin_only
748748
*/
749+
// We cannot read in WHOLE role permissions after a site has been launched.
750+
// This overwrites user permissions that have been customized after the fact.
751+
// Commenting it out. New sites will get the new permissions. Existing sites can
752+
// apply manually.
749753
function webspark_update_10014(&$sandbox): void{
750-
\Drupal::state()->set('configuration_locked', FALSE);
751-
752-
//Changed comments permissions
753-
\Drupal::service('asu_config.config_manager')->updateConfigFile('user.role.authenticated');
754-
\Drupal::service('asu_config.config_manager')->updateConfigFile('user.role.anonymous');
755-
//Changed register: admin_only
756-
\Drupal::service('asu_config.config_manager')->updateConfigFile('user.settings');
757-
758-
\Drupal::state()->set('configuration_locked', TRUE);
754+
// \Drupal::state()->set('configuration_locked', FALSE);
755+
//
756+
// //Changed comments permissions
757+
// \Drupal::service('asu_config.config_manager')->updateConfigFile('user.role.authenticated');
758+
// \Drupal::service('asu_config.config_manager')->updateConfigFile('user.role.anonymous');
759+
// //Changed register: admin_only
760+
// \Drupal::service('asu_config.config_manager')->updateConfigFile('user.settings');
761+
//
762+
// \Drupal::state()->set('configuration_locked', TRUE);
759763
}
760764

761765
/**

0 commit comments

Comments
 (0)