Remove ShopWorker entity and migrate worker identity to ApplicationUser
Removes the ShopWorker and ShopWorkerRoleCost entities, all related DTOs, mappings, controllers, views, and import/export paths. Worker identity is now handled entirely through ApplicationUser with per-user LaborCostPerHour. ShopWorkerRoleCosts table remains in production pending manual data migration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1067,8 +1067,7 @@
|
||||
var hasEquipment = User.HasClaim("Permission", "ManageEquipment") || User.IsInRole("SuperAdmin");
|
||||
var hasMaintenance = User.HasClaim("Permission", "ManageMaintenance") || User.IsInRole("SuperAdmin");
|
||||
var hasFinance = _isAdminOrManager || User.HasClaim("Permission", "ManageFinance");
|
||||
var hasShopWorkers = _isAdminOrManager || User.HasClaim("Permission", "ManageShopWorkers");
|
||||
var hasReports = _isAdminOrManager || User.HasClaim("Permission", "ViewReports");
|
||||
var hasReports = _isAdminOrManager || User.HasClaim("Permission", "ViewReports");
|
||||
var showOperations = hasCustomers || hasQuotes || hasInvoices || hasJobs || hasCalendar;
|
||||
var showInventorySection = hasInventory || hasVendors;
|
||||
var showEquipmentSection = hasEquipment || hasMaintenance;
|
||||
|
||||
Reference in New Issue
Block a user