Hello,
Please help...
I need to test a list of items against a set of rules as follows:
List
<tbody>
</tbody>
Rules
<tbody>
</tbody>
What I need to check:
If the user "John" has those 4 roles, which rules does he break?
So, in this case "John" breaks all for 4 rules as his 4 roles break the different combinations.
So the output could look like:
<tbody>
</tbody>
Background: This would be used to see if a user's access would be in violation of a rule set that is made up of combinations of system roles a single user shouldn't have...
Any help would be appreciated!
Many thanks
Please help...
I need to test a list of items against a set of rules as follows:
List
User | System Roles |
John | Role 1 |
John | Role 2 |
John | Role 3 |
John | Role 4 |
<tbody>
</tbody>
Rules
Rule | System Roles | System Roles |
Rule 1 | Role 1 | Role 2 |
Rule 2 | Role 3 | Role 4 |
Rule 3 | Role 1 | Role 3 |
Rule 4 | Role 2 | Role 3 |
<tbody>
</tbody>
What I need to check:
If the user "John" has those 4 roles, which rules does he break?
So, in this case "John" breaks all for 4 rules as his 4 roles break the different combinations.
So the output could look like:
User | Rules broken |
John | 1 |
John | 2 |
John | 3 |
John | 4 |
<tbody>
</tbody>
Background: This would be used to see if a user's access would be in violation of a rule set that is made up of combinations of system roles a single user shouldn't have...
Any help would be appreciated!
Many thanks