Обновление прав.Разработчики могут произвольно работать с багами
v++
This commit is contained in:
@@ -98,6 +98,16 @@ public class DVMConfigurationsForm extends DataSetControlForm<DVMConfiguration>
|
||||
}
|
||||
@Override
|
||||
protected boolean isObjectEditable(DVMConfiguration object) {
|
||||
return Global.mainModule.getAccount().CheckAccessRights(object.sender_address, null);
|
||||
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));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,15 @@ public class DVMSettingsForm extends DataSetControlForm<DVMSettings> {
|
||||
}
|
||||
@Override
|
||||
protected boolean isObjectEditable(DVMSettings object) {
|
||||
return Global.mainModule.getAccount().CheckAccessRights(object.sender_address, null);
|
||||
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));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user