Handle correctly missing View/Read permission during view deletion

This commit is contained in:
Ing. Pavel Janousek committed 2015-06-05 14:41:12 +02:00
1 parent 1571359f18
commit 4f60993f8b
1 file changed
+5
@@ -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());