I'm using ServiceStack and I dont know if my way is true or not for this requirement with ServiceStack Permission support.
Now rule table structure is:
- TargetRole
- TargetUserId
- DENY/ALLOW
- ActionTypeEnum
- StartDate
- EndDate
- StartHour
EndHour
RunningEnum ([Flags] OnlyOnce=1,Monday=2,....,Sunday=128)
Rule: All admins could not (DENY) crateUser (ACTIONTYPEENUM.CREATEUSER) every Mondays (RUNNINGENUM=2) between 12-17 hours (STARTHOUR=12,ENDHOUR=17)
So I have to solve these rules (and if I can I have to bind with ServiceStack Permission), Is there any problem on my way or any better framework or ruleresolver in C# ?