mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
Handle correctly missing View/Read permission during view deletion
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user