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

SecurityAdmin should extend ModelAdmin #1350

Closed
3 tasks done
maxime-rainville opened this issue Aug 28, 2022 · 2 comments
Closed
3 tasks done

SecurityAdmin should extend ModelAdmin #1350

maxime-rainville opened this issue Aug 28, 2022 · 2 comments

Comments

@maxime-rainville
Copy link
Contributor

maxime-rainville commented Aug 28, 2022

SecurityAdmin while being functionally equivalent in practically every way to a standard ModelAdmin doesn't extend ModelAdmin.

This adds extra technical debt because any fix or new feature we apply to the regular ModelAdmin needs to be replicated in SecurityAdmin.

In CMS5, we should aim to refactor SecurityAdmin to extend ModelAdmin.

Acceptance criteria

  • SecurityAdmin is refactored to extend ModelAdmin and remove redundant logic in CMS5
  • It is still possible to import Group and Members
  • Review where the warning came from. Remove the "Caution: Removing members from this list will remove them from all groups and the database" warning or talk to Design team to find a better solution.

Related

@emteknetnz
Copy link
Member

I don't know if we'll even the background to the warning "Caution: Removing members from this list will remove them from all groups and the database" - it was added 11 years ago in Silverstripe 2.4 - silverstripe/silverstripe-cms@033d27a

I think it should just be removed and we do not need any design input here. It seems completely obvious that, yes, when you click the delete button on a record from the thing that manages records, that the record is then deleted :-)

@GuySartorelli
Copy link
Member

All ACs met and PRs merged.

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

3 participants