Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Mar 10, 2020

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Dec 23, 2019

@rullzer rullzer mentioned this pull request Dec 23, 2019
18 tasks
@kesselb

This comment has been minimized.

@kesselb

This comment has been minimized.

Copy link
Member

@gary-kim gary-kim left a comment

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.

<div class="userActions">
<div v-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
Member

rullzer commented Jan 7, 2020

Ping :)

@rullzer rullzer modified the milestones: Nextcloud 18, Nextcloud 19 Jan 9, 2020
@rullzer
Copy link
Member

rullzer commented Jan 9, 2020

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

@kesselb
Copy link
Contributor

kesselb commented Jan 17, 2020

Conflicts 😨

@wiswedel
Copy link
Contributor

🏓

@wiswedel
Copy link
Contributor

Anyone still alive fixing this?

@juliushaertl
Copy link
Member Author

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

@wiswedel
Copy link
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

@juliushaertl
Copy link
Member Author

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
Contributor

kesselb commented Feb 25, 2020

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

@juliushaertl
Copy link
Member Author

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
Contributor

kesselb commented Feb 25, 2020

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.

@juliushaertl
Copy link
Member Author

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
Contributor

kesselb commented Feb 25, 2020

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.

Copy link
Member

@gary-kim gary-kim left a comment

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.

@juliushaertl
Copy link
Member Author

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.

@juliushaertl juliushaertl 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
@juliushaertl juliushaertl force-pushed the bugfix/18530/edit-own-user branch 2 times, most recently from f833d99 to 6f932ca Compare March 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>
@nursoda
Copy link

nursoda commented Mar 23, 2020

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
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
Member

rullzer commented Mar 23, 2020

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

@vincentstans
Copy link

vincentstans commented Mar 23, 2020

@ 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
Contributor

kesselb commented Mar 23, 2020

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

@kesselb kesselb mentioned this pull request Apr 4, 2020
@Hydrog3n
Copy link

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

ksnip_20200416-212430

@nursoda
Copy link

nursoda commented Apr 30, 2020

Works fine in 19 beta 5, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: users and groups regression
Projects
None yet
9 participants