- Issue created by @ikphilip
- Assigned to lobsterr
- πΊπΈUnited States ikphilip Charlotte, NC, USA
OK. Further investigation reveals ginvite is using a built-in access check in the group module. That check in Drupal\group\AccessGroupInstalledContentAccessCheck->access() requires a 'group' parameter be passed or else it fails the condition !$parameters->has('group') and returns AccessResult:neutral(). As currently constructed only group_relationship parameter is found. Adding the group id to the route appears to pass enough information to the group access check to pass.
This patch adjusts the routing and edits the My Invitations view which generates operation links.
- πΊπΈUnited States ikphilip Charlotte, NC, USA
Patch #5 should fix the my_invitations view to correctly create the routes.
-
LOBsTerr β
committed 73596daa on 3.0.x authored by
ikphilip β
Issue #3393973 by ikphilip, LOBsTerr: User Accept/Decline invitation...
-
LOBsTerr β
committed 73596daa on 3.0.x authored by
ikphilip β
-
LOBsTerr β
committed fce2e3dd on 4.0.x authored by
ikphilip β
Issue #3393973 by ikphilip, LOBsTerr: User Accept/Decline invitation...
-
LOBsTerr β
committed fce2e3dd on 4.0.x authored by
ikphilip β
- Issue was unassigned.
- Status changed to Fixed
about 1 year ago 10:20pm 15 October 2023 - π§πͺBelgium lobsterr
I decided to keep routes as they are right now, because some developers could alter they views and will miss these changes.
I just add additional check that plugin exist in our custom access check. - Status changed to Needs review
about 1 year ago 8:38pm 18 October 2023 - π¨π¦Canada floydm
This issue also appeared in the 2.x branch in release 2.2 and makes it so users cannot accept invitations.
As far as I can tell, it's just a one line change to fix it.
-
LOBsTerr β
committed 8a49cc7d on 2.x authored by
floydm β
Issue #3393973 by floydm, LOBsTerr: User Accept/Decline invitation...
-
LOBsTerr β
committed 8a49cc7d on 2.x authored by
floydm β
- Status changed to Fixed
about 1 year ago 9:46pm 18 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
6 months ago 8:16pm 26 June 2024 - π¦πΊAustralia jasp888
I'm on Drupal ver: 10.1.8
Modules:
- commerce ver: 8.x-2.39
- gcommerce ver: 3.0.0-alpha1
- ginvite ver: Version: 4.0.0-alpha3When clicking the inite hyperlink I'm seeing "Access denied You are not authorized to access this page.", and the following error log message:
Path: /user/register?invitee_mail=cm9iLnNAYXJyb3dzYWludC5jb20. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 115 of /var/www/ecommerce/mystore/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
Any assistance would be greatly appreciated - thank you in advance.