BugFix for th Sponsors table: The check for edit permissions for the delete link of a sponsor association was done on the wrong object

git-svn-id: https://svn.libreccm.org/ccm/trunk@2950 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-11-04 15:08:07 +00:00
parent a9d5856cb5
commit 5159789ec9
1 changed files with 2 additions and 3 deletions

View File

@ -241,13 +241,12 @@ public class SciProjectSponsorSheet extends Table {
final int row,
final int column) {
final com.arsdigita.cms.SecurityManager securityManager = CMS.getSecurityManager(state);
final GenericOrganizationalUnit sponsor
= new GenericOrganizationalUnit((BigDecimal) key);
final SciProject project = (SciProject) itemModel.getSelectedObject(state);
final boolean canEdit = securityManager.canAccess(
state.getRequest(),
com.arsdigita.cms.SecurityManager.EDIT_ITEM,
sponsor);
project);
if (canEdit) {
final ControlLink link = new ControlLink((Label)value);
link.setConfirmation(SciProjectGlobalizationUtil.globalize(