Skip the invitation process entirely (automatically accept invitation)

Created on 7 July 2022, over 2 years ago
Updated 28 September 2023, about 1 year ago

Problem/Motivation

For a group-based intranet system we want a specific role (manager) to be able to manage all groups (departments). The "manager" is currently using ginvite to add employees to specific groups/departments so they can manage the group's content. These employees are not a Drupal user, yet. So they create an account using the link from the invitation mail and then can log in. However, the next step is that they need to accept the invitation first.

Since they are employees, they don't really have a choice in that case so we don't want them to be able to decline, or better even don't even show them the invitation. Invitation should immediately be accepted as soon as possible (which is right after registration I assume as only then the user exists).

Proposed resolution

I guess, ginvite could hook into the user registration process and after user.insert it could check for open invitations for that user's email address and the accept them programmatically.

Remaining tasks

Create a patch.

User interface changes

None really, if any change at all, we are getting rid of intermediate steps.
Only for ginvite configuration page a new option is required.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany broon Potsdam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024