mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔧 Disallow guests from opening the notebook dialog (fix #78)
This commit is contained in:
parent
0715f255fb
commit
2c78537c9a
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue