Exemple #1
0
 protected override bool IsAllowed(User sessionUser, int employeeId)
 {
     return
         (_employeeStore.IsMe(sessionUser, employeeId) ||
          _employeeStore.IAmManagerOf(sessionUser, employeeId) ||
          (_employeeStore.IAmHr(sessionUser) && !_employeeStore.IsHr(employeeId)));
 }
Exemple #2
0
 protected override bool IsAllowed(User sessionUser, Employee req)
 {
     return(_employeeStore.IAmManagerOf(sessionUser, req.Id));
 }