From 61bd029303b66d1d349f93e5b2d0c3f49dbe95ad Mon Sep 17 00:00:00 2001 From: Aaron Graubert Date: Wed, 11 Sep 2024 22:42:21 -0600 Subject: [PATCH 1/3] Default deny explicit content to users --- server/models/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/User.js b/server/models/User.js index 2dd02b68..ef0c1554 100644 --- a/server/models/User.js +++ b/server/models/User.js @@ -107,7 +107,7 @@ class User extends Model { upload: type === 'root' || type === 'admin', accessAllLibraries: true, accessAllTags: true, - accessExplicitContent: true, + accessExplicitContent: false, selectedTagsNotAccessible: false, librariesAccessible: [], itemTagsSelected: [] From 6ae14213f5aa1a2b0ab73e72f0cbf3fdbfae2eda Mon Sep 17 00:00:00 2001 From: Aaron Graubert Date: Wed, 11 Sep 2024 23:08:00 -0600 Subject: [PATCH 2/3] Related ui changes for removing default explicit access --- client/components/modals/AccountModal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/modals/AccountModal.vue b/client/components/modals/AccountModal.vue index df1f7cbf..247fd08d 100644 --- a/client/components/modals/AccountModal.vue +++ b/client/components/modals/AccountModal.vue @@ -351,7 +351,7 @@ export default { update: type === 'admin', delete: type === 'admin', upload: type === 'admin', - accessExplicitContent: true, + accessExplicitContent: type === 'admin', accessAllLibraries: true, accessAllTags: true, selectedTagsNotAccessible: false @@ -386,7 +386,7 @@ export default { upload: false, accessAllLibraries: true, accessAllTags: true, - accessExplicitContent: true, + accessExplicitContent: false, selectedTagsNotAccessible: false }, librariesAccessible: [], From 2df3277dcde10ed19eb6432138be45b4bf8b1d59 Mon Sep 17 00:00:00 2001 From: Aaron Graubert Date: Wed, 11 Sep 2024 23:09:04 -0600 Subject: [PATCH 3/3] Server side change to enable default explicit acces for admins --- server/models/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/User.js b/server/models/User.js index ef0c1554..4333db88 100644 --- a/server/models/User.js +++ b/server/models/User.js @@ -107,7 +107,7 @@ class User extends Model { upload: type === 'root' || type === 'admin', accessAllLibraries: true, accessAllTags: true, - accessExplicitContent: false, + accessExplicitContent: type === 'root' || type === 'admin', selectedTagsNotAccessible: false, librariesAccessible: [], itemTagsSelected: []