File tree 2 files changed +5
-1
lines changed
server/controllers/processes
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const INDEX_PIPELINE = [
66
66
module . exports . INDEX_PIPELINE = INDEX_PIPELINE ;
67
67
68
68
router . get ( '/' , async ( req , res ) => {
69
- if ( ! req . user || ! req . user . roles . includes ( 'admin' ) ) {
69
+ if ( ! req ? .user ?. person || ! req . user . roles . includes ( 'admin' ) ) {
70
70
res . status ( 401 ) . json ( {
71
71
result : "Unauthorized"
72
72
} )
Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ export function ProcessDropdown() {
184
184
< NavDropdown . Item key = "roomLabels" as = { NavLink } to = "/process/roomLabels" >
185
185
Cartellini Stanze
186
186
</ NavDropdown . Item > )
187
+ if ( user . hasProcessPermission ( '/process/roomAssignmentsList' ) ) items . push (
188
+ < NavDropdown . Item key = "roomAssignmentsList" as = { NavLink } to = "/process/roomAssignmentsList" >
189
+ Assegnazioni Stanze
190
+ </ NavDropdown . Item > )
187
191
if ( user . hasProcessPermission ( '/process/my/urls' ) ) items . push (
188
192
< NavDropdown . Item key = "urls" as = { NavLink } to = "/process/my/urls" >
189
193
Alias Pagine Web
You can’t perform that action at this time.
0 commit comments