hide subscription, payment cards and invoices in profile menu when is 'Allow subscription payment' option disabled

frontend build
This commit is contained in:
Peter Papp
2020-08-30 11:05:08 +02:00
parent 8895b5062a
commit ab65ca7a13
10 changed files with 17 additions and 47 deletions

View File

@@ -101,7 +101,7 @@ class FileAccessController extends Controller
$shared = get_shared($token);
// Abort if shared is protected
if ((int) $shared->protected) {
if ((int)$shared->protected) {
abort(403, "Sorry, you don't have permission");
}
@@ -154,7 +154,7 @@ class FileAccessController extends Controller
$shared = get_shared($token);
// Abort if thumbnail is protected
if ((int) $shared->protected) {
if ((int)$shared->protected) {
abort(403, "Sorry, you don't have permission");
}