提交 4f60993f 编写于 作者: I Ing. Pavel Janousek

Handle correctly missing View/Read permission during view deletion

上级 1571359f
......@@ -69,6 +69,11 @@ public class DeleteViewCommand extends CLICommand {
try {
try {
view = voh.getView(view_s);
if (view == null) {
stderr.println("user is missing the View/Read permission");
errorOccurred = true;
continue;
}
view.checkPermission(View.DELETE);
} catch (Exception e) {
stderr.println(e.getMessage());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册