Skip to content

Allow to edit admin/own user in the user management - #18555

Merged
rullzer merged 4 commits into
masterfrom
bugfix/18530/edit-own-user
Mar 10, 2020
Merged

Allow to edit admin/own user in the user management#18555
rullzer merged 4 commits into
masterfrom
bugfix/18530/edit-own-user

Conversation

@juliusknorr

@juliusknorrjuliusknorr commented Dec 23, 2019

Copy link
Copy Markdown
Member

Comment threadapps/settings/src/components/UserList/UserRowSimple.vue
@rullzerrullzer mentioned this pull request Dec 23, 2019
18 tasks
@kesselb

This comment has been minimized.

@kesselb

This comment has been minimized.

@gary-kimgary-kim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  1. Login as admin
  2. Go to user management
  3. Enter editing mode for yourself
  4. Try to leave it (seems to work for any other user)

It seems that you currently cannot save when editing your own user.

<divclass="userActions">
<divv-if="OC.currentUser !== user.id && user.id !== 'admin' && !loading.all"
class="toggleUserActions">
<Actions>
<ActionButton icon="icon-checkmark"
@click="editing=false">
{{ t('settings', 'Done') }}
</ActionButton>

@gary-kim

This comment has been minimized.

This was referenced Dec 27, 2019
@rullzer

Copy link
Copy Markdown
Member

Ping :)

@rullzerrullzer modified the milestones: Nextcloud 18, Nextcloud 19Jan 9, 2020
@rullzer

Copy link
Copy Markdown
Member

master is NC19 now.
Please backport if it needs to go into 18

@kesselb

Copy link
Copy Markdown
Contributor

Conflicts 😨

@wiswedel

Copy link
Copy Markdown
Contributor

🏓

@wiswedel

Copy link
Copy Markdown
Contributor

Anyone still alive fixing this?

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

Yes, I was waiting for #19533 to be merged before doing another rebase dance.

@wiswedel

Copy link
Copy Markdown
Contributor

Yes, I was waiting for #19533 to be merged before doing another rebase dance.

#19533 has been merged to master, but 18 backport failed

@juliusknorr
juliusknorrforce-pushed the bugfix/18530/edit-own-user branch from 32d279d to 1a8ee2fCompareFebruary 25, 2020 18:12
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

All comments should be addressed, editing the own user is now limited to admin users as it is done in the backend.

Ready for review.

@kesselb

Copy link
Copy Markdown
Contributor

As group admin add a new user without selecting a group. The warning is shown for the button not the group list. Also not a blocker.

image

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

If Alice is a subdomain for group Test1234 and access the user list I see other users but not myself. I would expect to at least see Alice even if editing is disable. But not a blocker for this one. It's just confusing.

That actually works for me: user1 is group admin of group1
image

@kesselb

Copy link
Copy Markdown
Contributor

Also anything related to showing quota seems to be broken. It seems to be possible to change the quota but not what quota is currently selected. But that's probably fixed by #18818.

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

Also anything related to showing quota seems to be broken. It seems to be possible to change the quota but not what quota is currently selected. But that's probably fixed by #18818.

Oh joy, but yes, let's try to address that in #18818 then.

Same for the others. I can look into those, maybe you could create an issue for them, so I have a list rather than picking up pr comments.

@kesselb

Copy link
Copy Markdown
Contributor

That actually works for me: user1 is group admin of group1
image

image

Ah. I made Alice group admin but not member of the group. But yes a different story because Alice is missing in the user response.

@gary-kimgary-kim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested and looked at the code. LGTM.

P.S. Never seen a computed returning a function before. Interesting.

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

P.S. Never seen a computed returning a function before. Interesting.

Yeah the benefit of that is that the result is still cached, so it will only update if the dependency changes in contrast to a method.

@juliusknorrjuliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 28, 2020
@juliusknorr
juliusknorrforce-pushed the bugfix/18530/edit-own-user branch 2 times, most recently from f833d99 to 6f932caCompareMarch 4, 2020 15:47
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
juliusknorrforce-pushed the bugfix/18530/edit-own-user branch from 6f932ca to b9d5186CompareMarch 10, 2020 13:52
@rullzer
rullzer merged commit 19f2869 into masterMar 10, 2020
@rullzer
rullzer deleted the bugfix/18530/edit-own-user branch March 10, 2020 15:16
@nursoda

nursoda commented Mar 23, 2020

Copy link
Copy Markdown

I seem to be missing something here: I just installed 18.0.3 and still I can't edit my own user (no pencil icon). I need that e.g. to be able to assign myself to new groups. Currently, my (clumsy) workaround is to impersonate another admin and modify my user there…

users

Apart from the huge vertical space for each user … I HAD an entry with MANY test groups since these were shown within other user lines in 18.0.0. Is it possible that the height is still calculated from the biggest (now deleted) entry?

@wiswedel

Copy link
Copy Markdown
Contributor

I seem to be missing something here: I just installed 18.0.3 and still I can't edit my own user (no pencil icon). I need that e.g. to be able to assign myself to new groups. Currently, my (clumsy) workaround is to impersonate another admin and modify my user there…

I confirm that.
But even the impersonation trick does not work for the first admin that's been configured at installation.

image

@rullzer

Copy link
Copy Markdown
Member

yeah 18.0.3 is a release with just a security fix.
This will come with 18.0.4

@vincentstans

vincentstans commented Mar 23, 2020

Copy link
Copy Markdown

@ rullzer
You like to say stuff like that

Can i fix it by downloading and replacing some files ?

Sorry, @Uwe-MrT. It's only gonna be in 18.0.3, unless you check out the source and compile the Vue stuff by yourself. Then you can have it today.

@kesselb

Copy link
Copy Markdown
Contributor

@vincentstans what part of "18.0.3 is a release with just a security fix" did you not understand?

@kesselbkesselb mentioned this pull request Apr 4, 2020
@Hydrog3n

Copy link
Copy Markdown

Hello,
This seems not working in 19.0.0Beta4 with only one user in my case.

ksnip_20200416-212430

@nursoda

Copy link
Copy Markdown

Works fine in 19 beta 5, thanks!

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

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: users and groupsregression

Projects

None yet

9 participants

@juliusknorr@kesselb@gary-kim@rullzer@wiswedel@nursoda@vincentstans@Hydrog3n@skjnldsv