File tree Expand file tree Collapse file tree
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public async Task<OperationDataResult<List<Site>>> RegistrationSites(string toke
108108
109109 [ HttpGet ]
110110 [ Route ( "assigned-sites" ) ]
111- [ Authorize ( Roles = EformRole . Admin ) ]
111+ [ Authorize ( Policy = TimePlanningClaims . GetWorkingHours ) ]
112112 public async Task < OperationDataResult < AssignedSite > > GetAssignedSite ( int siteId )
113113 {
114114 return await _settingService . GetAssignedSite ( siteId ) ;
@@ -123,7 +123,7 @@ public async Task<OperationDataResult<AssignedSite>> GetAssignedSiteByCurrentUse
123123
124124 [ HttpPut ]
125125 [ Route ( "assigned-site" ) ]
126- [ Authorize ( Roles = EformRole . Admin ) ]
126+ [ Authorize ( Policy = TimePlanningClaims . GetWorkingHours ) ]
127127 public async Task < OperationResult > UpdateAssignedSite ( [ FromBody ] AssignedSite site )
128128 {
129129 return await _settingService . UpdateAssignedSite ( site ) ;
You can’t perform that action at this time.
0 commit comments