Skip to content

pkp/pkp-lib#11800 Allow manager to edit user setting Appear on the ma…#12471

Open
bozana wants to merge 1 commit intopkp:stable-3_5_0from
bozana:11800-3_5_0
Open

pkp/pkp-lib#11800 Allow manager to edit user setting Appear on the ma…#12471
bozana wants to merge 1 commit intopkp:stable-3_5_0from
bozana:11800-3_5_0

Conversation

@bozana
Copy link
Copy Markdown
Contributor

@bozana bozana commented Mar 19, 2026

…sthead

s. #11800

Copy link
Copy Markdown
Contributor

@taslangraham taslangraham left a comment

Choose a reason for hiding this comment

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

Just a few questions and suggestion, otherwise looks good.

}

// Ensure user group exists and belongs to the current context
$context = $request->attributes->get('context'); /** @var Context $context */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any reason(or benefits) to getting the Context this way as opposed a more common $this->getRequest()->getContext() pattern?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see we now use it this way everywhere in this class

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would then leave it as it is...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It seems to be the Laravel HTTP request pipeline, which would already have the context, so I am wondering why we do not use it everywhere... Maybe we should...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see it is used in only a handful of other places. But I don't have any strong opinions on whether or not we should adapt it more.

@bozana bozana force-pushed the 11800-3_5_0 branch 8 times, most recently from 64c9ba6 to 1433c37 Compare March 31, 2026 09:58
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