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

BUG SS361: User can accidentally remove self from the own Group #7304

Closed
3 tasks done
alessandromarotta opened this issue Aug 23, 2017 · 3 comments
Closed
3 tasks done

Comments

@alessandromarotta
Copy link

alessandromarotta commented Aug 23, 2017

Acceptance Criteria

  • As a logged in user with access to the "Security" section, I can remove myself from groups
  • As a logged in user with access to the "Security" section, I can't remove myself from any group that would deny me further access to that section (groups with ADMIN permission)
  • In the "Group" edit view, I can't unlink from an ADMIN group in the "Members" GridField (either by hiding the action, or through a validation error)
  • In the "Member" edit view, I get a validation error when removing from an ADMIN group

Notes

Pull requests

Original post

Hi there!
I found out a bug (IMHO) about the /admin/security/EditForm/field/Groups/ mask.

Every user can remove self from the own Group clicking on the unlink button.
I think that it's a bad idea.

image

Bye,
Alessandro

Note

ACs and details can also be found here silverstripe/silverstripe-cms#730

@alessandromarotta alessandromarotta changed the title BUG SS361: User can accidentally remove self from Group Edit mask BUG SS361: User can accidentally remove self from the own Group Aug 23, 2017
@chillu
Copy link
Member

chillu commented Aug 29, 2017

Confirmed that's the case - it's a regression from 3.x (not possible there).

@tractorcow
Copy link
Contributor

Confirmed that's the case - it's a regression from 3.x (not possible there).

It seems to be possible in 3.x.

@flamerohr
Copy link
Contributor

older issue here: silverstripe/silverstripe-cms#730

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

4 participants