Revision 707b6237
Added by Niels Hoffmann over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/user/UserDetailElement.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.ui.section.user; |
5 | 5 |
|
6 |
import eu.etaxonomy.cdm.api.service.IUserService; |
|
6 | 7 |
import eu.etaxonomy.cdm.model.common.User; |
7 | 8 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
8 | 9 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
9 | 10 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.SelectionType; |
11 |
import eu.etaxonomy.taxeditor.ui.forms.CdmPropertyChangeEvent; |
|
10 | 12 |
import eu.etaxonomy.taxeditor.ui.forms.CheckboxElement; |
11 | 13 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
12 | 14 |
import eu.etaxonomy.taxeditor.ui.forms.TextWithLabelElement; |
... | ... | |
47 | 49 |
text_username = formFactory.createTextWithLabelElement(formElement, |
48 | 50 |
"Username", entity.getUsername(), style); |
49 | 51 |
|
50 |
if (userIsAuthenticated()) { |
|
52 |
if (userIsAuthenticated() || CdmStore.getLoginManager().isAdmin()) {
|
|
51 | 53 |
element_editPassword = formFactory.createEditPasswordElement( |
52 | 54 |
formElement, "Change Password", getConversationHolder(), |
53 | 55 |
entity, style); |
Also available in: Unified diff
Merged with trunk