Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Followup to #2659996: Offering to maintain Commerce Discount First Time Customer
Co-maintainer(not author) of a sandbox project can't promote the project, getting access denied on /promote page
https://www.drupal.org/node/2155637/edit/promote
Comment | File | Size | Author |
---|---|---|---|
#6 | fix-permission-id-2660164-6.patch | 1.33 KB | apaderno |
Comments
Comment #2
drummI think this might be a duplicate issue, but I can't find any at this time.
Note for reproducing this - the project has already been promoted (thanks!), test with a current sandbox project.
Comment #3
kattekrab CreditAttribution: kattekrab at Creative Contingencies commentedComment #4
drummI think this might be fixed by changing
edit project
toupdate project
inComment #5
apadernoWhy is module using
'edit project'
when the following code is defining'update project'
?This could explain what happens since
project_user_access()
is the following function.It works for project owners because Project owners are treated as super users and can always access (as the comment says). For the other users, it checks a permission that doesn't exist, so they get access denied.
Comment #6
apadernoSince the code that updates the database table uses the following code, I would use this patch.
Comment #7
apadernoComment #9
drummLooks good.
Comment #10
drummThis has been deployed.