1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🔧 Disallow guests from opening the notebook dialog (fix #78)

This commit is contained in:
Steffo 2021-10-20 20:22:42 +02:00
parent 0715f255fb
commit 2c78537c9a

View file

@ -54,6 +54,12 @@ export function NotebookCreateBox({viewSet, resource}: NotebookCreateBoxProps):
[viewSet, resource], [viewSet, resource],
) )
if(!authorization) {
return null
}
if(!authorization.state.token) {
return null
}
if(resource) { if(resource) {
if(resource.value.locked_by) { if(resource.value.locked_by) {
return null return null