ext_repo_download setting - #36374
Open
MegaphoneJon wants to merge 1 commit into
Open
Conversation
|
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
PR commands & links...
|
Member
|
Looks good to me. Thanks @MegaphoneJon ! However, it is a bit outside my comfort area, so I will let another person merge. |
Contributor
|
I think this functionality makes a lot of sense @MegaphoneJon But it feels security conscious - and I think it would be good to add |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
https://lab.civicrm.org/dev/core/-/work_items/6526 describes an issue I recently encountered - I don't want end users to install extensions, but I want my monitoring to pick up that extensions need updating. @herbdool implemented a more limited fix, but for my use case, implementing the full fix seemed more feasible than managing the file permissions.
Before
Both allowing extension downloads and checking for available updates are controlled by a single setting.
After
You can check for available updates without allowing downloads.
Comments
I considered consolidating a bit more but I think this is the best approach without misusing
CRM_Extension_Browseror a more significant rewrite.