if (publicationAccessController.isUserAuthorized(getUserId(), pub.getPK())) {
PublicationSelection pubSelect = new PublicationSelection(pub);
pubSelect.setCutted(true);
addClipboardSelection(pubSelect);
} else {
<BUG>SilverTrace.warn("kmelia", "KmeliaSessionController.cutPublication",
"Security alert from user " + getUserId() + ", trying to cut publication " + pubId);
throw new ClipboardException("kmelia", SilverTrace.TRACE_LEVEL_INFO,
</BUG>
"Security purpose, access to publication is forbidden");

if (publicationAccessController.isUserAuthorized(getUserId(), pub.getPK())) {
PublicationSelection pubSelect = new PublicationSelection(pub);
addClipboardSelection(pubSelect);
} else {
SilverLogger.getLogger(this)
.warn("Security alert from user {0} trying to copy publication {1}", getUserId(), pubId);
throw new ClipboardException("kmelia", SilverpeasException.WARNING,
"Security purpose, access to publication is forbidden");
