-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
HPC-9259: Add module Protected Pages, add custom module to handle some specifics about embargoed content, add configuration, bulk actions and update permissions
- Loading branch information
Showing
29 changed files
with
715 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_core: | ||
default_config_hash: KhBLA3nouSdIVDBWen9UHN71v2RCEWFem9zwn7C9XC4 | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
_core: | ||
default_config_hash: fcx2bfv-TfdQ_hGuvq4GkK3SAeANYibuVJMcEJBGG38 | ||
langcode: en | ||
password: | ||
per_page_or_global: only_global | ||
protected_pages_session_expire_time: '0' | ||
enter_password_once: '1' | ||
validate_per_section: true | ||
protected_pages_global_password: $2y$10$xP0doQlJn.LFMdJO49YJ4uR53yJrRkjKn364MZyzUHlcZN4NeBOUW | ||
email: | ||
subject: 'Please visit this new page' | ||
body: "Dear friend,\r\n\r\nI just created a new page on my website and wanted to invite you to visit. The page is protected by password. Please find the details below:-\r\n\r\nPage Url = [protected-page-url]\r\n\r\nPage Password = password here\r\n\r\nThank you.\r\n[site-name]" | ||
others: | ||
protected_pages_title: 'GHO embargoed access' | ||
protected_pages_description: "<p>\r\nThe page you are trying to view is password protected.<br />\r\nPlease enter the password you have received by email to access the embargoed content.\r\n</p>" | ||
protected_pages_password_fieldset_legend: '' | ||
protected_pages_password_label: Password | ||
protected_pages_submit_button_text: Submit | ||
protected_pages_incorrect_password_msg: 'An incorrect password was submitted. Please check your password and try again.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
uuid: b6324a7b-f553-44e2-9ed4-382df0ef5cac | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- ghi_embargoed_access | ||
_core: | ||
default_config_hash: SVo71HduKFbRs1uPA_qEluJ_mFJSz6vXrQ19ZSObuU8 | ||
id: protect_content | ||
label: 'Protect Content' | ||
type: node | ||
plugin: protect_content | ||
configuration: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
uuid: d64129aa-a465-4438-92c7-0f5970603b69 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- ghi_embargoed_access | ||
_core: | ||
default_config_hash: 03CbUBTrNYTt7-XQZn1cwc4fMixXExZVVwVPjs5TQOM | ||
id: unprotect_content | ||
label: 'Unprotect Content' | ||
type: node | ||
plugin: unprotect_content | ||
configuration: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
html/modules/custom/ghi_embargoed_access/config/install/ghi_embargoed_access.settings.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enabled: false |
10 changes: 10 additions & 0 deletions
10
html/modules/custom/ghi_embargoed_access/config/install/system.action.protect_content.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
id: protect_content | ||
label: 'Protect Content' | ||
type: node | ||
plugin: protect_content | ||
configuration: { } |
10 changes: 10 additions & 0 deletions
10
html/modules/custom/ghi_embargoed_access/config/install/system.action.unprotect_content.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
id: unprotect_content | ||
label: 'Unprotect Content' | ||
type: node | ||
plugin: unprotect_content | ||
configuration: { } |
Oops, something went wrong.