umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.49k stars 2.69k forks source link

User not in sensitive data group can inadvertently change Approved state of member account #16873

Closed russellshome closed 2 months ago

russellshome commented 2 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

10.8.6

Bug summary

A user that is not in the sensitive data group should not be able to change the approved state of a member account. However, when a user that is not in the sensitive data group saves a member, that member is set to not approved.

Specifics

This happens in version 10 but does not happen in version 13 of Umbraco

Steps to reproduce

Create Umbraco 10 site. Add a member using the default admin account. The member is approved by default. Change the Admin user account by removing the sensitive data group Go to the member and Save Change the Admin user account by adding back the sensitive data group Check whether the member is approved. It will have become not approved.

Expected result / actual result

Expected: User not in sensitive data group cannot change approved state of a member Actual: User not in sensitive data group sets approved to false on save

github-actions[bot] commented 2 months ago

Hi there @russellshome!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

elit0451 commented 2 months ago

Hi @russellshome 👋

Thanks for reaching out! I was able to reproduce this issue when a member is saved from a user who is not part of the Sensitive data user group, the "Approved" toggle is automatically switched off. Unfortunately, since Umbraco 10 is no longer in its support phase, the only thing we can do here is to advise you to upgrade to version 13, where as you pointed out, the problem was resolved.

Here is the list of Long-term Support & End-of-Life for Umbraco CMS versions for reference: https://umbraco.com/products/knowledge-center/long-term-support-and-end-of-life/

elit0451 commented 2 months ago

Meanwhile, you can see the fix for v13 here.