X Tutup
Skip to content

Hide resend invitation mail - if user is guest#39602

Merged
AlexAndBear merged 5 commits intomasterfrom
enterprise/issues/4868
Dec 16, 2021
Merged

Hide resend invitation mail - if user is guest#39602
AlexAndBear merged 5 commits intomasterfrom
enterprise/issues/4868

Conversation

@AlexAndBear
Copy link

@AlexAndBear AlexAndBear commented Dec 16, 2021

Description

Bugfix: Don't resend invitation mail if a user is guest

With this change the resend invitation mail action in the user management
UI for guest users has been removed, it is not appropriate for this type
of user.

Related Issue

How Has This Been Tested?

  • create a guest user by sharing something
  • as admin, create an ordinary user
  • on the webUI user management page, check the list of users. Hover over the icon area at the right of both users.
  • the ordinary user has the "envelope" icon, and clicking it works (resends the invitation email)
  • the guest user does not have any "envelope" icon to click on.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@owncloud owncloud deleted a comment from update-docs bot Dec 16, 2021
@AlexAndBear AlexAndBear marked this pull request as ready for review December 16, 2021 09:49
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me in the webUI. The resend "envelope" icon is not shown for guest users. It is still shown for a new regular user.

Note: there is no backend "protection" of the endpoint. Sending to this with admin authentication:

http://172.17.0.1:8080/index.php/resend/invitation/someguest%40example.com

That will still send an "invitation"-style email to the guest, which has words that are not really correct for a guest.

But I guess that is OK. Someone has to have admin credentials and purposely do a "backend" request for that to happen. Random people cannot "just do it".

@AlexAndBear
Copy link
Author

AlexAndBear commented Dec 16, 2021

@phil-davis THX for hint, added backend protection

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

75.0% 75.0% Coverage
0.0% 0.0% Duplication

@AlexAndBear AlexAndBear merged commit 6c19327 into master Dec 16, 2021
@delete-merged-branch delete-merged-branch bot deleted the enterprise/issues/4868 branch December 16, 2021 11:56
@cortho
Copy link

cortho commented Jan 13, 2022

@janackermann, @phil-davis since I do not have access to the enterprise repo I'll ask my question here:

the resend invitation mail action [...] is not appropriate for this type of user.

Could you please explain why this is the case?

With our customers we sometimes have got the issue that the original invitation mail is somehow lost or they deleted it by mistake. In such a case any admin could use the functionality "Resend invitation email".

Now the only way to have sent an email to the new guest is deleting this guest user and to re-create any shares that were created for this user. AND this must be the original sharer(s) and not any admin.

So we're losing a lot of functionality or am I wrong?

Edit: Maybe the issue description is not clear. Does this mean guest users cannot resend invitation mails any further? Even if this is the case, what if a guest user is a group admin, shouldn't they be able to use this functionality?

Edit2: guest users can be (sub)admins, see owncloud/guests#480 (comment)

@phil-davis
Copy link
Contributor

@janackermann please answer. I am not familiar with guests users and the invitation workflow.

@cortho
Copy link

cortho commented Jan 27, 2022

@janackermann, @pmaier1 What is the status here? Will guest users who are (group) admins lose functionality?

@pmaier1
Copy link
Contributor

pmaier1 commented Jan 27, 2022

@janackermann, @pmaier1 What is the status here? Will guest users who are (group) admins lose functionality?

This has been released with Server 10.9. Guest users will not lose functionality. This is only about the feature in user management to resend an invitation to users. The feature was designed for regular users which have an invite expiration time, not for guests. Guest invitations do not expire. The change here hides the "resend invite" feature for guest users therefore.

@jnweiger
Copy link
Contributor

Confirmed fixed in 10.10.0 RC2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

X Tutup