Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Git pull command available without git repo and doesn't respect access rights on sites tab.
Patch fix this
| Comment | File | Size | Author |
|---|---|---|---|
| fix-git-pull-access-bypass-and-available-without-repo.patch | 914 bytes | formatC'vt | |











Comments
Comment #2
helmo CreditAttribution: helmo at Initfour websolutions commentedThe access callback you try to use here has specific code for platforms
user_access('create platform git-pull task'), which are not properly checked.I think we need to do a more thorough review of the checks, also relating to #2555129: Split site and platform Git features
Comment #3
formatC'vt CreditAttribution: formatC'vt as a volunteer commentedOh my bad.
Also i found that
git_allow_pull_task($node->git['git_allow_pull_task']) are not used anywhere and always not set.For me it's look like here should be
pull_methodinstead ofgit_allow_pull_task. Am I right?Comment #5
helmo CreditAttribution: helmo at Initfour websolutions commentedThe git_allow_pull_task has been cleaned up late last year ...
The access hook had already been added, so updating the title.
I've now added your check on repo_url for both site and platform access hooks.