first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Http;
namespace Fitness_core_BE.Interfaces.Services
{
public record PermissionContext(bool IsOwner, Guid? ClientId, Guid? StaffId, IReadOnlySet<string> AllowedNavKeys);
public interface IPermissionService
{
// Single shared source of truth for "what can this caller see/do" — used by both
// RequiresPermissionAttribute and NavController so they can never drift apart.
Task<PermissionContext> GetPermissionContextAsync(HttpContext httpContext);
}
}