Revision bb006ee7
Added by Andreas Müller almost 6 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ServiceBase.java | ||
---|---|---|
309 | 309 |
* @throws UnpublishedException thrown if entity is not public and unpublished should not be included |
310 | 310 |
*/ |
311 | 311 |
protected void checkPublished(IPublishable publishable, boolean includeUnpublished, String message) throws UnpublishedException { |
312 |
if (!(includeUnpublished || !publishable.isPublish())){
|
|
312 |
if (!(includeUnpublished || publishable.isPublish())){ |
|
313 | 313 |
throw new UnpublishedException("Access denied. "+ message); |
314 | 314 |
} |
315 | 315 |
} |
Also available in: Unified diff
ref #3560 fix checkPublished in service base class