refac
This commit is contained in:
1 parent
713a65ee31
commit
de9cff6b4e
1 file changed
+5
@@ -25,6 +25,11 @@
|
|||||||
if (!model) {
|
if (!model) {
|
||||||
goto('/workspace/models');
|
goto('/workspace/models');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!model?.write_access) {
|
||||||
|
toast.error($i18n.t('You do not have permission to edit this model'));
|
||||||
|
goto('/workspace/models');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
goto('/workspace/models');
|
goto('/workspace/models');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user