I'm very bad at maths and I've a situation where I need to find number of combinations for a real world situation.
I've 50 files and set of permissions can be given to users on those files such as View, Create, Edit, Delete and Distribute.
Now a user who has Create permission on a file, he should have View permission as well and this permission hierarchy is given below:
- Delete - Highest level
- View - Lowest level in permission hierarchy
Which means if user has permission to delete a file then he should have all the other 3 permissions.
Also for Distribute permission he should have View permission and distribute forms a different hierarchy.
Now each user can be assigned with different set of permissions on each file, for ex: User1 can have View, Distribute permission on File1 and all permissions on File2 and so on with other 48 files with different permission set.
Now with this combination if I see all the permissions on all 50 files as a single set for a user with satisfying the permission hierarchy condition, how many combinations of permissions can be assigned to a single user? How can I find this value