Skip to content

Commit 9881cbd

Browse files
committed
- directus permissions for basic user for whitelabelling
1 parent 7d3c526 commit 9881cbd

2 files changed

Lines changed: 95 additions & 12 deletions

File tree

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[
2-
{
3-
"_syncId": "416965c6-7695-4235-8322-8515c9a05820",
4-
"name": "custom_logos",
5-
"parent": null
6-
},
7-
{
8-
"_syncId": "74232676-80e7-4f8c-8012-c0d59e6d0a24",
9-
"name": "Public",
10-
"parent": null
11-
}
2+
{
3+
"name": "custom_logos",
4+
"parent": null,
5+
"_syncId": "416965c6-7695-4235-8322-8515c9a05820"
6+
},
7+
{
8+
"name": "Public",
9+
"parent": null,
10+
"_syncId": "74232676-80e7-4f8c-8012-c0d59e6d0a24"
11+
}
1212
]

echo/directus/sync/collections/permissions.json

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,87 @@
900900
"policy": "37a60e48-dd00-4867-af07-1fb22ac89078",
901901
"_syncId": "def59c0a-db5f-4c16-9d90-958bfffa72a9"
902902
},
903+
{
904+
"collection": "directus_files",
905+
"action": "read",
906+
"permissions": {
907+
"_and": [
908+
{
909+
"_or": [
910+
{
911+
"folder": {
912+
"name": {
913+
"_contains": "custom_logos"
914+
}
915+
}
916+
},
917+
{
918+
"folder": {
919+
"name": {
920+
"_contains": "Public"
921+
}
922+
}
923+
},
924+
{
925+
"folder": {
926+
"parent": {
927+
"name": {
928+
"_contains": "Public"
929+
}
930+
}
931+
}
932+
},
933+
{
934+
"folder": {
935+
"parent": {
936+
"parent": {
937+
"name": {
938+
"_contains": "Public"
939+
}
940+
}
941+
}
942+
}
943+
}
944+
]
945+
}
946+
]
947+
},
948+
"validation": null,
949+
"presets": null,
950+
"fields": [
951+
"id",
952+
"title",
953+
"description",
954+
"tags",
955+
"location",
956+
"storage",
957+
"focal_point_divider",
958+
"focal_point_x",
959+
"focal_point_y",
960+
"storage_divider",
961+
"filename_disk",
962+
"filename_download",
963+
"metadata",
964+
"type",
965+
"filesize",
966+
"created_on",
967+
"modified_by",
968+
"modified_on",
969+
"embed",
970+
"uploaded_by",
971+
"uploaded_on",
972+
"width",
973+
"folder",
974+
"height",
975+
"duration",
976+
"charset",
977+
"tus_id",
978+
"tus_data",
979+
"$thumbnail"
980+
],
981+
"policy": "37a60e48-dd00-4867-af07-1fb22ac89078",
982+
"_syncId": "2edbb99f-dc6c-46dd-9337-8e128aef9eaa"
983+
},
903984
{
904985
"collection": "directus_revisions",
905986
"action": "read",
@@ -920,7 +1001,8 @@
9201001
"presets": null,
9211002
"fields": [
9221003
"disable_create_project",
923-
"projects"
1004+
"projects",
1005+
"whitelabel_logo"
9241006
],
9251007
"policy": "37a60e48-dd00-4867-af07-1fb22ac89078",
9261008
"_syncId": "25411e4e-fb6c-41e7-be7b-300ca3b503ef"
@@ -957,7 +1039,8 @@
9571039
"token",
9581040
"id",
9591041
"last_page",
960-
"last_access"
1042+
"last_access",
1043+
"whitelabel_logo"
9611044
],
9621045
"policy": "37a60e48-dd00-4867-af07-1fb22ac89078",
9631046
"_syncId": "6377dace-23ad-47e6-bc68-cdf512a26c71"

0 commit comments

Comments
 (0)