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