Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

[SDPAP-8001] Fixes an issue for preview links #116

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
token_role: previewer
token_role: administrator
default_expiry: 2592000
cleanup_in_cron: 1
8 changes: 8 additions & 0 deletions modules/tide_share_link/tide_share_link.install
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,11 @@ function tide_share_link_install() {
}
}
}

/**
* Changes token role to administrator to avoid 404 response in page previewing.
*/
function tide_share_link_update_9001() {
$shared_link_config = \Drupal::configFactory()->getEditable('tide_share_link.settings');
$shared_link_config->set('token_role', 'administrator')->save();
}