File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- import useSWR , { SWRResponse } from 'swr'
2
1
import { sortBy } from 'lodash'
2
+ import useSWR , { SWRResponse } from 'swr'
3
3
4
4
import { EnvironmentConfig } from '~/config'
5
5
import { xhrGetAsync } from '~/libs/core'
Original file line number Diff line number Diff line change @@ -116,13 +116,21 @@ export const reviewRoutes: ReadonlyArray<PlatformRoute> = [
116
116
route : ':scorecardId' ,
117
117
} ,
118
118
{
119
+ authRequired : true ,
119
120
element : < EditScorecardPage /> ,
120
121
id : 'edit-scorecard-page' ,
122
+ rolesRequired : [
123
+ UserRole . administrator ,
124
+ ] ,
121
125
route : ':scorecardId/edit' ,
122
126
} ,
123
127
{
128
+ authRequired : true ,
124
129
element : < EditScorecardPage /> ,
125
130
id : 'new-scorecard-page' ,
131
+ rolesRequired : [
132
+ UserRole . administrator ,
133
+ ] ,
126
134
route : 'new' ,
127
135
} ,
128
136
You can’t perform that action at this time.
0 commit comments