Skip to content

Commit

Permalink
fix(apprentissage): video supression draft publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Naorid committed Apr 19, 2023
1 parent 9e58a6d commit 97b8eb2
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 68 deletions.
18 changes: 3 additions & 15 deletions config/config-sync/files/admin-role.strapi-author.json
Original file line number Diff line number Diff line change
Expand Up @@ -1147,11 +1147,7 @@
"action": "plugin::content-manager.explorer.create",
"subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage",
"properties": {
"fields": [
"Video.titre",
"Video.transcription",
"Video.url"
]
"fields": []
},
"conditions": [
"admin::is-creator"
Expand All @@ -1169,11 +1165,7 @@
"action": "plugin::content-manager.explorer.read",
"subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage",
"properties": {
"fields": [
"Video.titre",
"Video.transcription",
"Video.url"
]
"fields": []
},
"conditions": [
"admin::is-creator"
Expand All @@ -1183,11 +1175,7 @@
"action": "plugin::content-manager.explorer.update",
"subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage",
"properties": {
"fields": [
"Video.titre",
"Video.transcription",
"Video.url"
]
"fields": []
},
"conditions": [
"admin::is-creator"
Expand Down
24 changes: 3 additions & 21 deletions config/config-sync/files/admin-role.strapi-editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1168,11 +1168,7 @@
"action": "plugin::content-manager.explorer.create",
"subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage",
"properties": {
"fields": [
"Video.titre",
"Video.transcription",
"Video.url"
]
"fields": []
},
"conditions": []
},
Expand All @@ -1182,33 +1178,19 @@
"properties": {},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.publish",
"subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage",
"properties": {},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.read",
"subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage",
"properties": {
"fields": [
"Video.titre",
"Video.transcription",
"Video.url"
]
"fields": []
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.update",
"subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage",
"properties": {
"fields": [
"Video.titre",
"Video.transcription",
"Video.url"
]
"fields": []
},
"conditions": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"edit": {},
"list": {
"label": "id",
"searchable": true,
"sortable": true
"searchable": false,
"sortable": false
}
},
"titre": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"sortable": true
}
},
"Video": {
"videos": {
"edit": {
"label": "Video",
"label": "videos",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "Video",
"label": "videos",
"searchable": false,
"sortable": false
}
Expand Down Expand Up @@ -65,12 +65,12 @@
},
"layouts": {
"list": [
"Video"
"videos"
],
"edit": [
[
{
"name": "Video",
"name": "videos",
"size": 12
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"info": {
"singularName": "videos-campagne-apprentissage",
"pluralName": "videos-campagne-apprentissages",
"displayName": "Vidéos Campagne Apprentissage"
"displayName": "Vidéos Campagne Apprentissage",
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"attributes": {
"Video": {
"videos": {
"displayName": "Video",
"type": "component",
"repeatable": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "MIT",
"url": "https://github.com/DNUM-SocialGouv/1j1s-stage-orchestrateur-transform-load/blob/main/LICENSE"
},
"x-generation-date": "2023-04-19T13:30:55.540Z"
"x-generation-date": "2023-04-19T16:12:11.590Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down Expand Up @@ -23725,7 +23725,7 @@
"required": [],
"type": "object",
"properties": {
"Video": {
"videos": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VideoVideoComponent"
Expand All @@ -23744,7 +23744,7 @@
"attributes": {
"type": "object",
"properties": {
"Video": {
"videos": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VideoVideoComponent"
Expand All @@ -23758,10 +23758,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -24060,7 +24056,7 @@
"attributes": {
"type": "object",
"properties": {
"Video": {
"videos": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VideoVideoComponent"
Expand All @@ -24074,10 +24070,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -24409,7 +24401,7 @@
"attributes": {
"type": "object",
"properties": {
"Video": {
"videos": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VideoVideoComponent"
Expand All @@ -24423,10 +24415,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -24725,7 +24713,7 @@
"attributes": {
"type": "object",
"properties": {
"Video": {
"videos": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VideoVideoComponent"
Expand All @@ -24739,10 +24727,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 97b8eb2

Please sign in to comment.