Alexandre Bodin
3c7c33eab7
v3.1.6
2020-09-24 14:51:49 +02:00
Diego Albitres
0670c896e3
Add privateAttributes to global and per model response ( #7331 )
...
* Added privateAttributes globally and per model
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Added tests for sanitizeEntity
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Fixed broken test
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Added privateAttributes to GraphQL responses
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Added docs for privateAttributes
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Refactored and fixed PR comments
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Merged tests and fixed broken tests from merge
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Updated documentation for new option
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Refactored GraphQL implementation
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Fixed PR comments
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Fixed tests for sanitize-entity
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Removed code and tests for ignorePrivateFor
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Exported getPrivateAttributes for GraphQL plugin
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
* Removed ignorePrivateFor from docs
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
2020-09-24 09:40:10 +02:00
Pierre Noël
7221412d68
Draft publish/validators ( #7853 )
...
* add validators for dz, components and relations
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:45:59 +02:00
Jean-Sébastien Herbaux
c4716d5668
[D&P] Return published content by default from get apis ( #7657 )
...
* Add _publicationState request param / Returns live by default for CT that have D&P activated
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:46 +02:00
Pierre Noël
36892fe2a8
add webhooks for draftAndPublish + sanitize all webhooks info ( #7629 )
...
* add webhooks for draftAndPublish + sanitize all webhooks info
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:29 +02:00
Pierre Noël
38216554d5
Draft publish/remove some validators for drafts ( #7537 )
...
* remove required + minLength validator for drafts
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:24 +02:00
Pierre Noël
e29c1b7de9
add published_at ( #7374 )
...
* add published_at
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:18 +02:00
Convly
28beaaa932
Refactor validators and add better messages
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:16 +02:00
Peter Etelej
318f20e826
Bump up minimum required Node to 10.16 ( #7962 )
...
Updated README docs & package.json `engine` versions to bump up the
minimum required Node version from `10.10` to `10.16` (or `10.16.0+`)
Strapi no longer supports `10.10` since it updated `sharp` to `0.26.0`
( https://github.com/strapi/strapi/pull/7729 ) which requires Node 10.16.0+
(See https://github.com/lovell/sharp/blob/master/docs/changelog.md#v0260---25th-august-2020 )
` yarn create strapi-app my-project --quickstart` on 10.10 fails with error
```
error sharp@0.26.0: The engine "node" is incompatible with this module. Expected version ">=10.16.0". Got "10.10.0"
error Found incompatible module.
```
Signed-off-by: Peter Etelej <peter@etelej.com>
2020-09-22 16:00:13 +02:00
Convly
736a580001
v3.1.5
2020-09-16 15:26:12 +02:00
Alexandre Bodin
6905be68bc
Merge branch 'documentation'
2020-09-02 17:23:41 +02:00
DMehaffy
024b337b09
Update node version requirements for v10 to v12 ( #7409 )
...
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-09-02 17:11:59 +02:00
Jean-Sébastien Herbaux
1e67421668
Add utils::sanitize-entity tests ( #7497 )
...
* Add utils::sanitize-entity tests
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-08-18 16:26:24 +02:00
Pierre Noël
fb2db4b050
v3.1.4
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-08-13 19:05:20 +02:00
Pierre Noël
231263a353
v3.1.4
2020-08-13 18:58:14 +02:00
Convly
10cc543cc7
Fix sanitizeEntity's includeFields usage for dynamic zones
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-08-06 15:13:45 +02:00
Alexandre Bodin
97922f99ae
v3.1.3
2020-07-31 09:59:56 +02:00
Alexandre BODIN
c3e9b6c8ce
Merge branch 'master' into chore/clean-deps
2020-07-29 17:49:54 +02:00
Alexandre Bodin
6aaa018ff5
v3.1.2
2020-07-29 13:34:01 +02:00
dependabot[bot]
aea96bca68
Bump lodash from 4.17.15 to 4.17.19 ( #7239 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-29 11:10:32 +02:00
dependabot[bot]
33634151d4
Bump pluralize from 7.0.0 to 8.0.0 ( #7126 )
...
Bumps [pluralize](https://github.com/blakeembrey/pluralize ) from 7.0.0 to 8.0.0.
- [Release notes](https://github.com/blakeembrey/pluralize/releases )
- [Commits](https://github.com/blakeembrey/pluralize/compare/v7.0.0...v8.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2020-07-25 08:53:05 +02:00
alaoui abdellah
bca8bb662a
style: 📝 Improve error message of file upload by adding an example ( #7111 )
...
Signed-off-by: Abdellah Alaoui <als.abdellah@gmail.com>
2020-07-25 08:45:06 +02:00
Alexandre Bodin
004791817e
Cleanup shelljs
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-25 08:41:31 +02:00
Alexandre Bodin
35bae7df57
v3.1.1
2020-07-23 18:53:55 +02:00
Alexandre Bodin
1bbf1bc0dc
v3.1.0
2020-07-21 19:30:45 +02:00
Alexandre BODIN
c2fb4904cd
Merge pull request #6965 from strapi/features/rbac
...
Features/rbac
2020-07-20 19:07:46 +02:00
Alexandre Bodin
62b2192c95
Update license info
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-20 18:40:52 +02:00
Abdón Rodríguez Davila
51d514b042
Removing carets
...
Signed-off-by: Abdón Rodríguez Davila <a@abdonrd.com>
2020-07-20 09:46:14 +02:00
Abdón Rodríguez Davila
e34202bae2
Update slugify dependency
...
Signed-off-by: Abdón Rodríguez Davila <a@abdonrd.com>
2020-07-18 19:32:31 +02:00
Alexandre Bodin
6bafa35a36
Merge branch 'releases/3.1.0' into features/rbac
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-18 10:12:40 +02:00
Alexandre Bodin
4d31935716
v3.0.6
2020-07-16 17:03:04 +02:00
Alexandre Bodin
38d67fc873
Fix mongo issues
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 16:07:11 +02:00
Alexandre Bodin
109e41ea1f
Fix e2e tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 13:53:56 +02:00
Alexandre Bodin
1c90614f8b
Fix sanitizeEntity
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:44 +02:00
Alexandre Bodin
cdc9bc2167
Allow multiple args in policies
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
44a7e2321d
Update findOne
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
29fcf7c3cd
Clean find relation list and tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Convly
36facdfd00
Add new sanitize-entity.js
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:41 +02:00
Convly
20f80b2361
Better permissions-manager.sanitize behavior
...
Forbid empty arrays as fields for permissions (on ability creation)
Differentiate input from output sanitizing
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:38 +02:00
Convly
8b81395171
Fix filename typo
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Convly
b5fb5f8509
Add permissions to the content-manager routes
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Convly
11ba971302
Rework policy handling, add util to create policy factories, allow array declaration for hasPermissions
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:16 +02:00
Convly
b3f602d207
Rework policies resolving (allow policy generators) / Add hasPermissions policy
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:16 +02:00
Alexandre Bodin
966d9c554f
Move hasDeepFilters to utils
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:36:26 +02:00
Alexandre Bodin
82316bbf3a
Allow or operator and working with bookshelf
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:32:44 +02:00
Pierre Noël
1ee5b7f189
fifth refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:09 +02:00
Convly
765d7aaa52
Add check many permissions route/controller / Add userAbility to the context's state / Add isAuthenticatedAdmin.js
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:05:50 +02:00
Pierre Noël
42e3b64689
refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:08 +02:00
Pierre Noël
bbb1353927
remove hidden contentTypes from permission actions list + fix tests
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:07 +02:00
Pierre Noël
e078c0b022
rename permissions to actions, inverted params of provider.get, separated formatter, add possibility to not specigy pluginName for ::application
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:07 +02:00