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-94f89814c4dfmaster
parent
a9d5856cb5
commit
5159789ec9
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue