Omaha #946 Disable Delete and Move To for a protected file.
Change-Id: Ia714552b780feea7ee41f89057300d0b90c95267 Former-commit-id: 1c749717d2b7ef11bd6b515370fcc8f1144c0c12
This commit is contained in:
parent
ed41698c82
commit
b33a9239c4
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,7 @@ import com.raytheon.uf.viz.localization.perspective.editor.LocalizationEditorInp
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Nov 3, 2010 mschenke Initial creation
|
||||
* Feb 18, 2015 4132 mapeters Fixed issue with deleting overrides.
|
||||
* Jun 29, 2015 946 rferrel Do not allow delete of a protected level file.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -216,6 +217,10 @@ public class DeleteAction extends Action {
|
|||
canDelete = false;
|
||||
break;
|
||||
}
|
||||
if (file.isProtected() && file.getProtectedLevel().equals(level)) {
|
||||
canDelete = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return canDelete;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue