... |
... |
@@ -53,7 +53,7 @@ class MemberSecureDownloadsListener {
|
53 |
53 |
*/
|
54 |
54 |
public function onListEditOperationCallback(array $row, ?string $href, string $label, string $title, ?string $icon, string $attributes, string $table, array $rootRecordIds, ?array $childRecordIds, bool $circularReference, ?string $previous, ?string $next, DataContainer $dc)
|
55 |
55 |
{
|
56 |
|
- if (!$this->User->isAdmin && !$this->User->hasAccess('tl_member_secureDownloads::ctime','alexf'))
|
|
56 |
+ if (!$this->User->isAdmin && !$this->User->hasAccess('tl_files::name','alexf'))
|
57 |
57 |
{
|
58 |
58 |
return '';
|
59 |
59 |
}
|
... |
... |
@@ -62,9 +62,10 @@ class MemberSecureDownloadsListener {
|
62 |
62 |
$objFile = $objSecFile->getRelated('uuid');
|
63 |
63 |
$title = sprintf($GLOBALS['TL_LANG']['tl_member_secureDownloads']['edit'][1],$objFile->name);
|
64 |
64 |
|
65 |
|
- $href .= '&id='.$row['id'];
|
|
65 |
+// $href .= '&id='.$row['id'];
|
|
66 |
+ $href = 'do=files&act=edit&id=' . $objFile->path;
|
66 |
67 |
|
67 |
|
- return '<a href="'.Backend::addToUrl($href).'" title="'.StringUtil::specialchars($title).'">'.Image::getHtml($icon, $label).'</a> ';
|
|
68 |
+ return '<a href="'.Backend::addToUrl($href,true,['table']).'" title="'.StringUtil::specialchars($title).'">'.Image::getHtml($icon, $label).'</a> ';
|
68 |
69 |
}
|
69 |
70 |
|
70 |
71 |
/**
|