fixed export-feature in MemberTableField

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44625 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-11-12 03:27:13 +00:00
parent 5313544f7b
commit 99b0288927
2 changed files with 4 additions and 3 deletions

View File

@ -61,6 +61,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
if(!Permission::check('EDIT_PERMISSIONS')) $fields->removeFieldFromTab('Root', 'Permissions');
$memberList->setController($this);
$memberList->setPermissions(array('show','edit','export'));
$fields->push($idField = new HiddenField("ID"));
$idField->setValue($id);

View File

@ -69,9 +69,9 @@
</tbody>
</table>
<div class="utility">
<% if Can(export) %>
$ExportButton
<% end_if %>
<% control Utility %>
<span class="item"><a href="$Link" target="_blank">$Title</a></span>
<% end_control %>
</div>
</div>
</div>