Removed control link in the ContactEntriesTable. The link does notthing (at the moment) and only confuses the users.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2731 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
c8061b1659
commit
34af914def
|
|
@ -213,18 +213,20 @@ public class GenericContactEntriesTable extends Table implements TableActionList
|
|||
boolean isSelected, Object key,
|
||||
int row, int column) {
|
||||
|
||||
SecurityManager sm = Utilities.getSecurityManager(state);
|
||||
GenericContact contact = (GenericContact) m_itemModel.getSelectedObject(state);
|
||||
|
||||
boolean canEdit = sm.canAccess(state.getRequest(),
|
||||
SecurityManager.EDIT_ITEM,
|
||||
contact);
|
||||
if (canEdit) {
|
||||
ControlLink link = new ControlLink(value.toString());
|
||||
return link;
|
||||
} else {
|
||||
return new Label(value.toString());
|
||||
}
|
||||
return new Label(value.toString());
|
||||
|
||||
// SecurityManager sm = Utilities.getSecurityManager(state);
|
||||
// GenericContact contact = (GenericContact) m_itemModel.getSelectedObject(state);
|
||||
//
|
||||
// boolean canEdit = sm.canAccess(state.getRequest(),
|
||||
// SecurityManager.EDIT_ITEM,
|
||||
// contact);
|
||||
// if (canEdit) {
|
||||
// ControlLink link = new ControlLink(value.toString());
|
||||
// return link;
|
||||
// } else {
|
||||
// return new Label(value.toString());
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue