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

User Read/Edit permission #1552

Closed
terrypacker opened this issue Mar 5, 2020 · 9 comments
Closed

User Read/Edit permission #1552

terrypacker opened this issue Mar 5, 2020 · 9 comments

Comments

@terrypacker
Copy link
Contributor

Add Read and Edit permission to User. This will allow letting certain users edit other users and view other users.

@terrypacker terrypacker changed the title Use Read/Edit permission User Read/Edit permission Mar 5, 2020
@terrypacker terrypacker self-assigned this Mar 5, 2020
@terrypacker
Copy link
Contributor Author

Read view will restrict what fields can be seen.
Edit should be restricted to what fields they can edit.

1 similar comment
@terrypacker
Copy link
Contributor Author

Read view will restrict what fields can be seen.
Edit should be restricted to what fields they can edit.

@terrypacker
Copy link
Contributor Author

Check the UsersViewPermissionDefinition when we implement this as it is not used anywhere anymore but could be used in the UI to hide/show the Users/Roles menu item.

@jazdw
Copy link
Contributor

jazdw commented Mar 1, 2021

@terrypacker do you think we should remove the permissions.user.editSelf system permission? I would imagine so. Do you think we can/should do an upgrade on this?

@jazdw
Copy link
Contributor

jazdw commented Mar 1, 2021

Also @terrypacker can you please elaborate on what you mean by these -

Read view will restrict what fields can be seen.
Edit should be restricted to what fields they can edit.

@terrypacker
Copy link
Contributor Author

@jazdw

Read view will restrict what fields can be seen.
Edit should be restricted to what fields they can edit.

I think the idea was to restrict various fields per permission but I don't really like that idea as it makes things non-standard. I believe that we should just use the read/edit permissions like everything else where you can read/edit the whole user or not.

As for:

permissions.user.editSelf

Agreed that is redundant now, we should use an upgrade (I think), we should check when that was added to the codebase as it may just be for 4.0 which would imply we can remove it without an upgrade path. If we need to do the upgrade then I guess it would be something like this:

  1. Get permission roles
  2. Find users with those roles
  3. Ensure that those users can still edit self by placing those roles onto the edit permission

We should probably think that through further but just tossing out my thoughts here for now.

@jazdw
Copy link
Contributor

jazdw commented Mar 1, 2021

I dont think there is an upgrade path, besides creating a new role for every single user with permission to edit themselves... We can't copy roles from the "edit self" permission to the user's edit permission as this would allow someone to edit another user which they didn't previously have access to edit.

@jazdw
Copy link
Contributor

jazdw commented Apr 1, 2021

Merged into main, primary commits are 31afa16 and 60e3485

@terrypacker
Copy link
Contributor Author

Released in beta.13

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

No branches or pull requests

2 participants