Closed tylerjwatson closed 4 years ago
Is many-to-many between [User] and [Group] necessary? Do we want users to be able to belong to multiple groups?
Edit: Ok, I missed #8. I can agree with @WhiteXZ's take. You can dismiss my comment.
Reopening this as it's valid in new orion
Rationale
TShock's permission system is made up of a comma-separated list of groups, using SQL only as a storage engine and not what it's supposed to be used for. Most of the performance problems with the AAA system can be resolved by using proper schema.
Structure
Precedence rules
HasPermission
follows these rules:IsNegated
immediately returns the value ofIsNegated
true
, else it continues on to the next groupfalse
if no groups contain the permissionNotes