summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-03-14 13:14:19 +0100
committerGitHub <noreply@github.com>2023-03-14 13:14:19 +0100
commit59185918744093370a3596d4929359ceb4b21c20 (patch)
tree8c430c2adcb285a06d2023231ffe4ac3bf60dc5d
parent2b291e74d55e9b1eb2111135d4ffb10c8308d462 (diff)
parent9d74ea00d4688074adaa5352e1a50f6a51bc0087 (diff)
downloadnextcloud-server-59185918744093370a3596d4929359ceb4b21c20.tar.gz
nextcloud-server-59185918744093370a3596d4929359ceb4b21c20.zip
Merge pull request #37168 from nextcloud/bugfix/noid/hide-download-actions
fix(files_sharing): Allow file actions other than download for hide download shares
-rw-r--r--apps/files_sharing/js/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 128875ba6ab..154b970c5be 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -217,7 +217,7 @@ OCA.Sharing.PublicApp = {
// Remove the link. This means that files without a default action fail hard
$tr.find('a.name').attr('href', '#');
- this.fileActions.actions.all = {};
+ delete this.fileActions.actions.all.Download;
}
return $tr;
};
light .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
<?php
/**
 * Copyright (c) 2012 Thomas Müller <thomas.mueller@tmit.eu>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */

require_once __DIR__.'/../lib/base.php';

function enableApp($app) {
	try {
		OC_App::enable($app);
	} catch (Exception $e) {
		echo $e;
	}
}

enableApp('files_sharing');
enableApp('files_encryption');
enableApp('files_external');
enableApp('user_ldap');
enableApp('files_versions');