Revision 4030ebf8
Added by Andreas Müller over 8 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/hibernate/CdmSecurityHibernateInterceptor.java | ||
---|---|---|
65 | 65 |
// exculdeMap.put(TaxonNameBase.class, new HashSet<String>()); |
66 | 66 |
|
67 | 67 |
Set<String> defaultExculdes = new HashSet<String>(); |
68 |
defaultExculdes.add("createdBy"); //created by is changed by CdmPreDataChangeObservableListener after save. This is handled as a change and therefore throws a security exception during first insert if only CREATE rights exist
|
|
68 |
defaultExculdes.add("createdBy"); //created by is changed by CdmPreDataChangeListener after save. This is handled as a change and therefore throws a security exception during first insert if only CREATE rights exist |
|
69 | 69 |
defaultExculdes.add("created"); // same behavior was not yet observed for "created", but to be on the save side we also exclude "created" |
70 | 70 |
|
71 | 71 |
for ( CdmBaseType type: CdmBaseType.values()){ |
Also available in: Unified diff
Rename CdmPreDataChangeObservableListener to CdmPreDataChangeListener