How would you write this block of code?
A user can have 3 levels of permission:
Suspend Lock Ban
We have to decide if we want to delete the users account automatically.
The business rules are as follows:
Delete User if: suspend + lock + ban
Warning Message if: suspend + lock
So how would you write this code block? Keeping code readability and maintainability in mind.