refac
This commit is contained in:
@@ -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