Admins can change display name when flag set to false#29132
Conversation
3aacaa5 to
4e57dff
Compare
|
Made modification so that admin and group admins can change the display name. It would be nice to know if we want to have only
|
4e57dff to
803770b
Compare
|
Any chance to get this unit tested? THX |
|
@sharidas I think any kind of admin should be able to change the display name. Non-admins aka users should not. |
|
So if I understand correctly
|
|
@sharidas correct |
|
@pmaier1 FYI ^ |
|
Now an admin and group admin can change the users display name |
803770b to
d2fe69f
Compare
|
@sharidas please adjust unit tests. If there are none, please add some. Thanks |
Thats next task. |
d2fe69f to
648f118
Compare
lib/private/User/User.php
Outdated
There was a problem hiding this comment.
Injecting GroupManager and UserSession here. Didn't liked the previous version of the patch. So used this approach. Let me know if it looks ok to inject here.
There was a problem hiding this comment.
Have also added unit test for the same.
Codecov Report
@@ Coverage Diff @@
## master #29132 +/- ##
============================================
+ Coverage 60.45% 60.46% +<.01%
- Complexity 17222 17226 +4
============================================
Files 1032 1032
Lines 57360 57368 +8
============================================
+ Hits 34677 34686 +9
+ Misses 22683 22682 -1
Continue to review full report at Codecov.
|
8ba23cf to
6e1e30c
Compare
|
Will create backport. |
|
Backport to stable10: #29442 |
|
When 'allow_user_to_change_display_name' => false, is set in the config.php then admin user should be able to set the display name. Signed-off-by: Sujith H <sharidasan@owncloud.com>
6e1e30c to
6a75852
Compare
|
All checks passed. |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When 'allow_user_to_change_display_name' => false, is
set in the config.php then admin user should be
able to set the display name.
Signed-off-by: Sujith H sharidasan@owncloud.com
Description
When 'allow_user_to_change_display_name' => false, is set in the config.php, then the admin user should be able to set the display name of users.
Related Issue
#27442
Motivation and Context
When 'allow_user_to_change_display_name' => false, is set in the config.php, the admin user wasn't able to set the display name. This change will help to allow the admin to set the display name for users.
How Has This Been Tested?
testand adduser1anduser2to the grouptest.user1as the group admin fortest1.userthen try to change the display name foruser1, it worked.Screenshots (if appropriate):
Types of changes
Checklist: