mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
Minor fixes
This commit is contained in:
parent
3d7345fd7e
commit
b74d77faf2
@ -193,14 +193,15 @@ public class MetaClassRepresentation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static MetaClass getMetaClass(Class clazz) {
|
private static MetaClass getMetaClass(Class clazz) {
|
||||||
return AppBeans.get(Metadata.class).getSession().getClass(clazz);
|
Metadata metadata = AppBeans.get(Metadata.class);
|
||||||
|
return metadata.getExtendedEntities().getEffectiveMetaClass(metadata.getClassNN(clazz));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean viewPropertyReadPermitted(MetaClass meta, ViewProperty viewProperty) {
|
private static boolean viewPropertyReadPermitted(MetaClass meta, ViewProperty viewProperty) {
|
||||||
if (!attrViewPermitted(meta, viewProperty.getName()))
|
if (!attrViewPermitted(meta, viewProperty.getName()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
MetaProperty metaProperty = meta.getProperty(viewProperty.getName());
|
MetaProperty metaProperty = meta.getPropertyNN(viewProperty.getName());
|
||||||
if (metaProperty.getType() == MetaProperty.Type.DATATYPE
|
if (metaProperty.getType() == MetaProperty.Type.DATATYPE
|
||||||
|| metaProperty.getType() == MetaProperty.Type.ENUM)
|
|| metaProperty.getType() == MetaProperty.Type.ENUM)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user