Project

General

Profile

« Previous | Next » 

Revision df947da5

Added by Katja Luther over 4 years ago

ref #8239: disable details for missing rights

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorUtil.java
193 193

  
194 194
    private static void openNameEditor_internal(TaxonEditorInputE4 input, EModelService modelService, EPartService partService, MApplication application) {
195 195
        TaxonBase taxonBase = input.getTaxon();
196
        TaxonNode node = input.getTaxonNode();
196 197
        if(taxonBase==null){
197 198
            return;
198 199
        }
200
        boolean hasPermission = false;
201
//        if (node != null){
202
//            hasPermission = CdmStore.currentAuthentiationHasPermission(node, RequiredPermissions.TAXON_EDIT);
203
//        }
204
//        if (!hasPermission){
205
//            MessagingUtils.warningDialog(Messages.EditorUtil_MISSING_PERMISSION, TaxonEditorInputE4.class, Messages.EditorUtil_MISSING_PERMISSION_MESSAGE);
206
//            return;
207
//        }
199 208
        if (taxonBase.isOrphaned()) {
200 209
            if(taxonBase.isInstanceOf(Synonym.class)){
201 210
                MessagingUtils.warningDialog(Messages.EditorUtil_ORPHAN_ACCEPTED_TAXON, TaxonEditorInputE4.class, Messages.EditorUtil_ORPHAN_ACCEPTED_TAXON_MESSAGE);
......
207 216
            }
208 217
        }
209 218

  
219

  
210 220
        Collection<MPart> parts = partService.getParts();
211 221
        //check if part is already opened
212 222
        for (MPart part : parts) {

Also available in: Unified diff