Revision 42af5bd2
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkflowViewBean.java | ||
---|---|---|
134 | 134 |
|
135 | 135 |
registration.addComponent(createWorkflowTabSheet(workingset, null)); |
136 | 136 |
RegistrationItem registrationItem = new RegistrationItem(workingset, this); |
137 |
if(UserHelper.userIsRegistrationCurator() || UserHelper.userIsAdmin()){
|
|
137 |
if(UserHelper.fromSession().userIsRegistrationCurator() || UserHelper.fromSession().userIsAdmin()){
|
|
138 | 138 |
registrationItem.getSubmitterLabel().setVisible(true); |
139 | 139 |
}; |
140 | 140 |
registration.addComponent(registrationItem); |
... | ... | |
234 | 234 |
messageButton.setCaptionAsHtml(true); |
235 | 235 |
buttonGroup.addComponent(messageButton); |
236 | 236 |
|
237 |
if(UserHelper.userIsRegistrationCurator() || UserHelper.userIsAdmin()) {
|
|
237 |
if(UserHelper.fromSession().userIsRegistrationCurator() || UserHelper.fromSession().userIsAdmin()) {
|
|
238 | 238 |
Button editButton = new Button(FontAwesome.EDIT); |
239 | 239 |
editButton.setStyleName(ValoTheme.BUTTON_TINY + " " + ValoTheme.BUTTON_PRIMARY); |
240 | 240 |
editButton.addClickListener(e -> getEventBus().publishEvent(new RegistrationEditorAction( |
Also available in: Unified diff
ref #6169 UserHelper checking permissions: