Skip to content

Commit

Permalink
chore: reproduce bug case
Browse files Browse the repository at this point in the history
  • Loading branch information
salmanm committed Sep 7, 2022
1 parent f457685 commit af85135
Show file tree
Hide file tree
Showing 40 changed files with 5,419 additions and 274 deletions.
3 changes: 3 additions & 0 deletions config/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ module.exports = ({ env }) => ({
apiToken: {
salt: env('API_TOKEN_SALT'),
},
watchIgnoreFiles: [
'**/config/sync/**',
],
});
1 change: 1 addition & 0 deletions config/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ module.exports = ({ env }) => ({
ssl: env.bool('DATABASE_SSL', false),
},
},
settings: { forceMigration: false },
});
19 changes: 19 additions & 0 deletions config/plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
'config-sync': {
enabled: true,
config: {
syncDir: 'config/sync/',
minify: false,
importOnBootstrap: false,
customTypes: [
{
configName: 'foo',
queryString: 'api::foo.foo',
uid: 'name',
},
],
excludedTypes: [],
excludedConfig: [],
},
},
}
41 changes: 41 additions & 0 deletions config/sync/admin-role.strapi-author.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "Author",
"code": "strapi-author",
"description": "Authors can manage the content they have created.",
"permissions": [
{
"action": "plugin::upload.assets.copy-link",
"subject": null,
"properties": {},
"conditions": []
},
{
"action": "plugin::upload.assets.create",
"subject": null,
"properties": {},
"conditions": []
},
{
"action": "plugin::upload.assets.download",
"subject": null,
"properties": {},
"conditions": []
},
{
"action": "plugin::upload.assets.update",
"subject": null,
"properties": {},
"conditions": [
"admin::is-creator"
]
},
{
"action": "plugin::upload.read",
"subject": null,
"properties": {},
"conditions": [
"admin::is-creator"
]
}
]
}
37 changes: 37 additions & 0 deletions config/sync/admin-role.strapi-editor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "Editor",
"code": "strapi-editor",
"description": "Editors can manage and publish contents including those of other users.",
"permissions": [
{
"action": "plugin::upload.assets.copy-link",
"subject": null,
"properties": {},
"conditions": []
},
{
"action": "plugin::upload.assets.create",
"subject": null,
"properties": {},
"conditions": []
},
{
"action": "plugin::upload.assets.download",
"subject": null,
"properties": {},
"conditions": []
},
{
"action": "plugin::upload.assets.update",
"subject": null,
"properties": {},
"conditions": []
},
{
"action": "plugin::upload.read",
"subject": null,
"properties": {},
"conditions": []
}
]
}
Loading

0 comments on commit af85135

Please sign in to comment.