Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkp/pkp-lib#10571 limit email template access by user groups #10581

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

taslangraham
Copy link
Contributor

@taslangraham taslangraham commented Nov 5, 2024

For #10571

@taslangraham taslangraham force-pushed the i10571_limit_template_access_by_sender_and_receiver_role branch 5 times, most recently from 0352bec to ba47e2b Compare November 14, 2024 19:12
@taslangraham taslangraham force-pushed the i10571_limit_template_access_by_sender_and_receiver_role branch 7 times, most recently from 3cb222d to cf0580b Compare November 20, 2024 15:29
@taslangraham taslangraham changed the title pkp/pkp-lib#10571 pkp/pkp-lib#10571 limit email template access by user groups Nov 20, 2024
@taslangraham taslangraham force-pushed the i10571_limit_template_access_by_sender_and_receiver_role branch 2 times, most recently from 8b6f076 to 75b9ed1 Compare November 20, 2024 17:01
@taslangraham taslangraham marked this pull request as ready for review November 20, 2024 18:32
@taslangraham taslangraham force-pushed the i10571_limit_template_access_by_sender_and_receiver_role branch from 75b9ed1 to 405e376 Compare November 20, 2024 18:37
@taslangraham
Copy link
Contributor Author

@ewhanson Just an update - I've made a new commit since I last requested your review.

This handles cases where a template was restored to default settings, and also cleans up template access when a template is deleted

classes/decision/steps/Email.php Outdated Show resolved Hide resolved
schemas/emailTemplate.json Outdated Show resolved Hide resolved
schemas/emailTemplate.json Outdated Show resolved Hide resolved
schemas/emailTemplate.json Outdated Show resolved Hide resolved
*
*/
public function installEmailTemplates(
string $templatesFile,
array $locales = [],
?string $emailKey = null,
bool $skipExisting = false
bool $skipExisting = false,
$recordTemplateGroupAccess = false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mention this directly below, but I don't think this optional parameter will be necessary. I think the assumption of "unrestricted if no additional data provided" below is enough.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For posterity, we talked about it and decided to keep thing $recordTemplateGroupAccess parameter as described here to avoid any issues as part of the upgrade process.

@taslangraham taslangraham force-pushed the i10571_limit_template_access_by_sender_and_receiver_role branch from efecaab to a5f43dc Compare November 25, 2024 22:20
@taslangraham taslangraham force-pushed the i10571_limit_template_access_by_sender_and_receiver_role branch from a5f43dc to d2e9586 Compare November 25, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants