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-94f89814c4df
master
jensp 2014-07-01 12:16:04 +00:00
parent c8061b1659
commit 34af914def
1 changed files with 14 additions and 12 deletions

View File

@ -213,18 +213,20 @@ public class GenericContactEntriesTable extends Table implements TableActionList
boolean isSelected, Object key, boolean isSelected, Object key,
int row, int column) { 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());
// }
} }
} }