* rc20-alpah2 + empty Model set from Yavsc
This commit is contained in:
parent
b962d58ded
commit
8ee81e9357
6 changed files with 9 additions and 14 deletions
|
|
@ -9,6 +9,6 @@ namespace Yavsc.Models.Access
|
|||
|
||||
}
|
||||
// Abstract method to compute any authorization on a resource
|
||||
public abstract bool Allow(ApplicationDbContext context, string userId, TResource resource, TRequirement requirement);
|
||||
public abstract bool Allow(string userId, TResource resource, TRequirement requirement);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace Yavsc.Models.Access
|
|||
{
|
||||
public abstract class RuleSet <TResource,TRequirement>:List<Rule<TResource,TRequirement>> {
|
||||
|
||||
public abstract bool Allow(ApplicationDbContext context, string userId, TResource resource, TRequirement requirement);
|
||||
public abstract bool Allow(string userId, TResource resource, TRequirement requirement);
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue