mirror of
https://github.com/strapi/strapi.git
synced 2025-08-28 18:51:33 +00:00
chore(upload-aws-s3): upload isPrivate
This commit is contained in:
parent
4e6731ec58
commit
aba3eba51f
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
// Public node modules.
|
// Public node modules.
|
||||||
const _ = require('lodash');
|
const get = require('lodash/get');
|
||||||
const AWS = require('aws-sdk');
|
const AWS = require('aws-sdk');
|
||||||
|
|
||||||
function assertUrlProtocol(url) {
|
function assertUrlProtocol(url) {
|
||||||
@ -53,7 +53,7 @@ module.exports = {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
isPrivate() {
|
isPrivate() {
|
||||||
return true;
|
return get(config, ['params', 'isPrivate'], false);
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user