mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
Stamp WorkOrder.AccountId on all create paths and filter board/list/search/detail by server-derived account claims so scoped callers cannot cross accounts. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
351 B
C#
13 lines
351 B
C#
using System.Security.Claims;
|
|
using SeaHaven.Services.DTOs;
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
{
|
|
public interface IWorkOrderAdvancedSearchService
|
|
{
|
|
Task<PagedResult<WorkOrderBoardRowDto>> SearchAsync(
|
|
WorkOrderAdvancedSearchQueryDto query,
|
|
ClaimsPrincipal user,
|
|
string? currentUserId);
|
|
}
|
|
}
|