Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

spi-security: Simplify SecurityModuleAppUserRegistrationServiceAbstract #44

Open
danhaywood opened this issue Oct 13, 2017 · 1 comment

Comments

@danhaywood
Copy link
Contributor

danhaywood commented Oct 13, 2017

from isisaddons-legacy/isis-module-security#46

bilgin:

What is the reason for SecurityModuleAppUserRegistrationServiceAbstract to have 2 abstract methods getInitialRole and getAdditionalInitialRoles?

Why not have only one method that returns Set? It will be easier to override. Otherwise, it makes you think that initial role is different that any any additional role.?

@danhaywood
Copy link
Contributor Author

dan:

Yep, I agree. Was probably just how it evolved over time.

Obviously it'll be a breaking API change, but I'm less fussy about that so long as the changelog in the README explains how to fix (perhaps worth an additional section in the README to address this).

If you want to create a PR for this, I'll be happy to merge it in.

Thx

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
incode-platform (project)
  
Backlog - Improvement
Development

No branches or pull requests

1 participant