Skip to content

Commit 20781f3

Browse files
committed
fix: media operation access & removed robots.ts
1 parent 9762f20 commit 20781f3

3 files changed

Lines changed: 35 additions & 48 deletions

File tree

public/sitemap.xml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
3-
<url><loc>http://localhost:3000</loc><lastmod>2026-05-06T18:40:42.609Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de"/></url>
4-
<url><loc>http://localhost:3000/robots.txt</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en/robots.txt"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de/robots.txt"/></url>
5-
<url><loc>http://localhost:3000/en</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
6-
<url><loc>http://localhost:3000/en/about-us</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
7-
<url><loc>http://localhost:3000/en/actions</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
8-
<url><loc>http://localhost:3000/en/blog</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
9-
<url><loc>http://localhost:3000/en/community-edition</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
10-
<url><loc>http://localhost:3000/en/contact</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
11-
<url><loc>http://localhost:3000/en/enterprise-edition</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
12-
<url><loc>http://localhost:3000/en/features</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
13-
<url><loc>http://localhost:3000/en/jobs</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
14-
<url><loc>http://localhost:3000/en/legal-notice</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
15-
<url><loc>http://localhost:3000/en/privacy</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
16-
<url><loc>http://localhost:3000/en/subscription</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
17-
<url><loc>http://localhost:3000/en/terms</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
18-
<url><loc>http://localhost:3000/de</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
19-
<url><loc>http://localhost:3000/de/about-us</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
20-
<url><loc>http://localhost:3000/de/actions</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
21-
<url><loc>http://localhost:3000/de/blog</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
22-
<url><loc>http://localhost:3000/de/community-edition</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
23-
<url><loc>http://localhost:3000/de/contact</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
24-
<url><loc>http://localhost:3000/de/enterprise-edition</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
25-
<url><loc>http://localhost:3000/de/features</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
26-
<url><loc>http://localhost:3000/de/jobs</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
27-
<url><loc>http://localhost:3000/de/legal-notice</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
28-
<url><loc>http://localhost:3000/de/privacy</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
29-
<url><loc>http://localhost:3000/de/subscription</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
30-
<url><loc>http://localhost:3000/de/terms</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
3+
<url><loc>http://localhost:3000</loc><lastmod>2026-05-09T14:33:25.419Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de"/></url>
4+
<url><loc>http://localhost:3000/robots.txt</loc><lastmod>2026-05-09T14:33:25.420Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en/robots.txt"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de/robots.txt"/></url>
5+
<url><loc>http://localhost:3000/en</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
6+
<url><loc>http://localhost:3000/en/about-us</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
7+
<url><loc>http://localhost:3000/en/actions</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
8+
<url><loc>http://localhost:3000/en/blog</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
9+
<url><loc>http://localhost:3000/en/community-edition</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
10+
<url><loc>http://localhost:3000/en/contact</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
11+
<url><loc>http://localhost:3000/en/enterprise-edition</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
12+
<url><loc>http://localhost:3000/en/features</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
13+
<url><loc>http://localhost:3000/en/jobs</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
14+
<url><loc>http://localhost:3000/en/legal-notice</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
15+
<url><loc>http://localhost:3000/en/privacy</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
16+
<url><loc>http://localhost:3000/en/subscription</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
17+
<url><loc>http://localhost:3000/en/terms</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
18+
<url><loc>http://localhost:3000/de</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
19+
<url><loc>http://localhost:3000/de/about-us</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
20+
<url><loc>http://localhost:3000/de/actions</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
21+
<url><loc>http://localhost:3000/de/blog</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
22+
<url><loc>http://localhost:3000/de/community-edition</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
23+
<url><loc>http://localhost:3000/de/contact</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
24+
<url><loc>http://localhost:3000/de/enterprise-edition</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
25+
<url><loc>http://localhost:3000/de/features</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
26+
<url><loc>http://localhost:3000/de/jobs</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
27+
<url><loc>http://localhost:3000/de/legal-notice</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
28+
<url><loc>http://localhost:3000/de/privacy</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
29+
<url><loc>http://localhost:3000/de/subscription</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
30+
<url><loc>http://localhost:3000/de/terms</loc><lastmod>2026-05-09T14:33:25.421Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
3131
</urlset>

src/app/robots.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/collections/media.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ export const Media: CollectionConfig = {
44
slug: 'media',
55
access: {
66
read: () => true,
7+
create: ({ req }) => Boolean(req.user),
8+
update: ({ req }) => Boolean(req.user),
9+
delete: ({ req }) => Boolean(req.user),
10+
},
11+
admin: {
12+
useAsTitle: 'filename',
13+
defaultColumns: ['filename', 'alt', 'mimeType', 'createdAt'],
714
},
815
fields: [
916
{

0 commit comments

Comments
 (0)