Project

General

Profile

Revision e1aaf938

IDe1aaf938098b03a4d0b4540caa711cdb9b1100cd
Parent bbdd609f
Child 9fec29e5

Added by Andreas Kohlbecker almost 2 years ago

ref #7586 not setting datasource to readOnly when user lacks permissions

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/common/TeamOrPersonField.java
240 240
        UserHelper userHelper = UserHelperAccess.userHelper();
241 241
        boolean canEdit = teamOrPerson == null || !teamOrPerson.isPersited() || userHelper.userHasPermission(teamOrPerson, CRUD.UPDATE);
242 242
        if(!canEdit){
243
            getPropertyDataSource().setReadOnly(true);
244 243
            setReadOnlyComponents(true);
245 244
        }
246 245
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)