Skip to content

Commit 95bdc70

Browse files
authored
Display warning for public access policy in bucket settings (#2473)
Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
1 parent 5d10197 commit 95bdc70

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

portal-ui/src/screens/Console/Buckets/BucketDetails/SetAccessPolicy.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,19 @@ const SetAccessPolicy = ({
143143
]}
144144
/>
145145
</Grid>
146+
{accessPolicy === "PUBLIC" && (
147+
<div
148+
style={{
149+
marginTop: "25px",
150+
fontSize: "14px",
151+
fontStyle: "italic",
152+
color: "#5E5E5E",
153+
}}
154+
>
155+
* Warning: With Public access anyone will be able to upload,
156+
download and delete files from this Bucket *
157+
</div>
158+
)}
146159
{accessPolicy === "CUSTOM" && (
147160
<Grid item xs={12} className={classes.codeMirrorContainer}>
148161
<CodeMirrorWrapper

0 commit comments

Comments
 (0)