дополнение безопасности. не везде был сделан режим чтения
This commit is contained in:
@@ -33,5 +33,6 @@ public class DVMConfigurationDialog extends DBObjectDialog<DVMConfiguration, DVM
|
||||
fields.tfName.setEnabled(false);
|
||||
fields.sCompilationMaxtime.setEnabled(false);
|
||||
fields.sRunMaxtime.setEnabled(false);
|
||||
fields.sKernels.setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,6 @@ public class DVMConfigurationsForm extends DataSetControlForm<DVMConfiguration>
|
||||
if (Global.mainModule.getAccount().CheckRegistered(null)) {
|
||||
switch (Global.mainModule.getAccount().role) {
|
||||
case Admin:
|
||||
case Developer:
|
||||
return true;
|
||||
default:
|
||||
return (Global.mainModule.getAccount().email.equals(object.sender_address));
|
||||
|
||||
@@ -56,5 +56,10 @@ public class DVMSettingsDialog extends DBObjectDialog<DVMSettings, DVMSettingsFi
|
||||
fields.sMaxDimProc.setEnabled(false);
|
||||
fields.cbCube.setEnabled(false);
|
||||
fields.sMaxProc.setEnabled(false);
|
||||
fields.bAddFlags.setEnabled(false);
|
||||
fields.bAddEnvironments.setEnabled(false);
|
||||
fields.bDeleteEnvironment.setEnabled(false);
|
||||
fields.bDeleteFlags.setEnabled(false);
|
||||
fields.cbDvmStat.setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,10 +21,10 @@ public class DVMSettingsFields implements DialogFields {
|
||||
public JTextField tfEnvironments;
|
||||
public JCheckBox cbDvmStat;
|
||||
private JPanel content;
|
||||
private JButton bAddFlags;
|
||||
private JButton bAddEnvironments;
|
||||
private JButton bDeleteFlags;
|
||||
private JButton bDeleteEnvironment;
|
||||
public JButton bAddFlags;
|
||||
public JButton bAddEnvironments;
|
||||
public JButton bDeleteFlags;
|
||||
public JButton bDeleteEnvironment;
|
||||
public DVMSettingsFields() {
|
||||
sMinDimProc.setModel(new SpinnerNumberModel(1, 0, 128, 1));
|
||||
sMaxDimProc.setModel(new SpinnerNumberModel(1, 0, 128, 1));
|
||||
|
||||
@@ -94,7 +94,6 @@ public class DVMSettingsForm extends DataSetControlForm<DVMSettings> {
|
||||
if (Global.mainModule.getAccount().CheckRegistered(null)) {
|
||||
switch (Global.mainModule.getAccount().role) {
|
||||
case Admin:
|
||||
case Developer:
|
||||
return true;
|
||||
default:
|
||||
return (Global.mainModule.getAccount().email.equals(object.sender_address));
|
||||
|
||||
Reference in New Issue
Block a user