Revize 87fd0356
Přidáno uživatelem Lukáš Vlček před téměř 3 roky(ů)
webapp/pages/documents/annotator/index.tsx | ||
---|---|---|
26 | 26 |
setDocuments(docs); |
27 | 27 |
} |
28 | 28 |
} |
29 |
if (!redirecting && role === 'ANNOTATOR') { |
|
29 |
|
|
30 |
if (!redirecting /* && role === 'ANNOTATOR'*/) { |
|
31 |
// admin can also fetch data if he likes so |
|
30 | 32 |
fetchData(); |
31 | 33 |
} |
32 | 34 |
}, [logout, redirecting, role, router]); |
... | ... | |
75 | 77 |
}, |
76 | 78 |
]; |
77 | 79 |
|
78 |
return redirecting || role !== 'ANNOTATOR' ? null : (
|
|
80 |
return redirecting /*|| role !== 'ANNOTATOR' */ ? null : (
|
|
79 | 81 |
<MainLayout> |
80 | 82 |
<Typography.Title level={2}> |
81 | 83 |
<FontAwesomeIcon icon={faFileLines} /> Dokumenty |
Také k dispozici: Unified diff
Admin can also load documents assigned to him for annotation