public void setUserRef(final UserRef userRef) {
        this.userRef = userRef;
        getView().setUserRef(userRef);
        getView().setReadOnly(hasPermissionToEdit());
    }
The Info sub-tab of UserTabPresenter
stroom-core-client/src/main/java/stroom/security/client/presenter/UserInfoPresenter.java