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 row,
|
||||||
final int column) {
|
final int column) {
|
||||||
final com.arsdigita.cms.SecurityManager securityManager = CMS.getSecurityManager(state);
|
final com.arsdigita.cms.SecurityManager securityManager = CMS.getSecurityManager(state);
|
||||||
final GenericOrganizationalUnit sponsor
|
final SciProject project = (SciProject) itemModel.getSelectedObject(state);
|
||||||
= new GenericOrganizationalUnit((BigDecimal) key);
|
|
||||||
|
|
||||||
final boolean canEdit = securityManager.canAccess(
|
final boolean canEdit = securityManager.canAccess(
|
||||||
state.getRequest(),
|
state.getRequest(),
|
||||||
com.arsdigita.cms.SecurityManager.EDIT_ITEM,
|
com.arsdigita.cms.SecurityManager.EDIT_ITEM,
|
||||||
sponsor);
|
project);
|
||||||
if (canEdit) {
|
if (canEdit) {
|
||||||
final ControlLink link = new ControlLink((Label)value);
|
final ControlLink link = new ControlLink((Label)value);
|
||||||
link.setConfirmation(SciProjectGlobalizationUtil.globalize(
|
link.setConfirmation(SciProjectGlobalizationUtil.globalize(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue