-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d30864e
commit c468115
Showing
20 changed files
with
285 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c468115
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RoleEntity IsTrivialMerge
Applications with many roles and modules have traditionally been constrained in Signum Framework due to the limitaiton of a user having only one role.
Until last week, this limitation was a hard one, since merging arbitrary roles with different type conditions for the same type was not guarantee to succeed. But this is fortunately solved.
This change doesn't go all the way and changes the
UserEntity
to have anMList<Lite<RoleEntity>>
yet for technical (AuthCache
) and UX reasons (simple lists), but tries to make this scenarios easier.The idea is that, when clicking in the find icon in the
User
role,Now multiple roles can be selected.
In this case, a controller in the server will find a role that inherits from this two roles or, if it doesn't exist, create it...
But this union role needs to have some restrictions:
Union
merge of more two roles or more.All this behaviour and constrains are controlled by a new internal field
IsTrivialMerge
toRoleEntity
.Conclusion
This change efectively separates the world of roles in two.
Hopefully this small change could bring some order to applications with many roles, and make Signum more Enterprise-Frendly when using standards like Active Directory groups.
c468115
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.