1196 Commits

Author SHA1 Message Date
soupette
2e56b8c9a9 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:26 +02:00
Convly
ef94229d81 Add Condition Provider & Permissions Engine 2020-07-08 11:05:49 +02:00
soupette
a4d99ba742 Add permissions to settings menu
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:47 +02:00
soupette
ff48998648 Move useUserPermissions hook
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:12 +02:00
soupette
2fd80d7de4 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:12 +02:00
soupette
467d77cbaa Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:11 +02:00
soupette
5665227e28 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:11 +02:00
soupette
99dac93f27 Add permissions to inputmedia
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:11 +02:00
soupette
012941f9ad Add permissions to ML
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:11 +02:00
soupette
170b8a7d18 Revet work
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
soupette
9c83713953 Temp commit
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
soupette
e8ee11f354 Created hook to check available permissions and secure ml main compo
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
soupette
dd66abe69b Init permissions in ml
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
soupette
6a298fc991 Rename permissions components
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
Pierre Noël
0ff2048ea9 add action plugins::application.settings.read
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
Pierre Noël
707746ef45 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02:00
Pierre Noël
ae0dcb9745 add route GET /admin/permissions
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02:00
soupette
3c8c15efca Add permissions check to plugins main components except the ctm
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:04 +02:00
soupette
7f4bb2a5bc Update plugin object
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:27 +02:00
soupette
904eb3ab7a Update settings api and documentation
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:26 +02:00
soupette
acb43e5aa9 Update settings api to add the permissions check
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:26 +02:00
soupette
b68245b8b1 Add permissions to plugins links in the menu only
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:25 +02:00
soupette
2577eeedd3 Created MagicLink component
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:23:09 +02:00
soupette
3e33790125 Created ModalHeader component in helper and use it in upload plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:45:37 +02:00
soupette
62a79a5fc0 Created basic routing for the settings
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:45:28 +02:00
HichamELBSI
2495d94da5 Fix selected files for the media lib modal
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-03 18:34:45 +02:00
richardgrey
47197419e1 Add Ukrainian translations for the whole project
Signed-off-by: richardgrey <richie.grey@gmail.com>
2020-06-30 17:23:01 +04:00
Andrey Hohutkin
94e031eba5
Fixes for Media Library upload (#5971)
* Fix formatFileInfo

Keep original file name including extension

* Fix file name for generated media

File name was not set for all generated media: thumbnail and resized pictures.

* Generate hash based on file name without extension

* cleanup PR

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

* Fix unit tests
Exclude temporarily unit test 'Replaces reserved and unsafe characters for URLs and files in hash' because it did not work properly ever.

* Remove path delimiter from filename because it is correct character for file path

* Fix e2e

* Continue fixes for e2e

* Fix createRequest content type

* Correct thumbnail name in e2e test

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Andrey Hohutkin <none@none>
2020-06-25 10:13:42 +02:00
Alexandre Bodin
eaf40e1ada v3.0.5 2020-06-23 12:18:00 +02:00
soupette
6dffb1a8d2 Fixes #6775
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-06-23 12:09:23 +02:00
Alexandre Bodin
9ed11a6682 v3.0.4 2020-06-19 09:19:52 +02:00
Alexandre Bodin
c909d7162d v3.0.3 2020-06-18 19:17:15 +02:00
alxnkt
f10b4db609
Russian translation for Media Library (#6167)
* Signoff (Russian translation)

Signed-off-by: alxnkt <alxnkt@mail.ru>

* New line at the end of index.js file

* Minor changes for plurals

Signed-off-by: alxnkt <alxnkt@mail.ru>

Co-authored-by: cyril lopez <cyril.lpz@gmail.com>
2020-06-18 19:09:30 +02:00
Boom Lee
a26b4f65a8
Fix node version (#6482) (#6691) 2020-06-16 11:32:23 +02:00
Alexandre Bodin
497fb742eb v3.0.2 2020-06-15 17:09:15 +02:00
Fadhil Ahmad
d58a55dce6
Update translation support on 'users-permissions' , 'upload' and 'content-manager' plugin (#6439)
* fix: add Enable, Disable, and Done trad on email plugin

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* fix: add translation for dinamic zone required component error

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* fix: back to form.button.done, turns out other dont have form.button.done on strapi-admin

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* feat: add replace media translation support

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>
2020-06-15 14:10:12 +02:00
Fadhil Ahmad
7123a11444
Add Malay(ms.json) Translation (#6394)
* feat: add malay  translation for strapi-admin

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* feat: add malay locale on strapi-generate-plugin

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* feat: add malay translation for content-manager

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* feat: add malay translation for content-type-builder

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* faet: add malay translation for strapi-plugin-documentation

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* feat: add malay translation for email plugin

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* feat: add malay translation on upload plugin

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* feat: add malay translation for permission plugin

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* Fix language middleware (#6387)

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* [typo] Persmissions > Permissions (#6390)

Signed-off-by: ScottAgirs <scott@ijs.to>
Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* refactor: fix typo, suitable word and grammar

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* test: add ms test

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

* fix: typos on plugin.description email

Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Scott Agirs <ScottAgirs@users.noreply.github.com>
Co-authored-by: cyril lopez <cyril.lpz@gmail.com>
2020-06-11 12:05:16 +02:00
hhh
062cb62926
Fix missing validation error message on media field (#6346)
* Fix missing validation error message on media field

Signed-off-by: henrych4 <singyinhenry@gmail.com>

* Add id and error propTypes

Signed-off-by: henrych4 <singyinhenry@gmail.com>

* Update the style to keep the baseline

Signed-off-by: henrych4 <singyinhenry@gmail.com>

* Update propTypes of id and error and set default value

Signed-off-by: henrych4 <singyinhenry@gmail.com>

Co-authored-by: cyril lopez <cyril.lpz@gmail.com>
2020-05-29 11:39:25 +02:00
Alexandre Bodin
5b64e05d7f v3.0.1 2020-05-29 09:38:21 +02:00
Alexandre Bodin
6bb7a7f198 v3.0.0 2020-05-26 15:09:32 +02:00
Tudor Ilisoi
86d5caf77b
fixes #5984 (#6055)
* fixes #5984

Signed-off-by: Tudor Ilisoi <tudorilisoi@yahoo.com>

* fixes #5984 again

Signed-off-by: Tudor Ilisoi <tudorilisoi@yahoo.com>

* fixed tests

Signed-off-by: Tudor Ilisoi <tudorilisoi@yahoo.com>

* removed search params encoding in the upload plugin

Signed-off-by: Tudor Ilisoi <tudorilisoi@yahoo.com>
2020-05-25 18:24:39 +02:00
Jørgensen
65cc815a18
Upload proxy - Using Header objects build-in entries function (#6340)
* Using Header objects build-in entries function

* Using const in iteration
2020-05-25 16:05:12 +02:00
Alexandre Bodin
004c881c61 Merge branch 'develop' 2020-05-25 15:21:37 +02:00
Jørgensen
b23286a90f
Clarified upload proxy error messages 2020-05-25 10:09:19 +02:00
Marvin König
fa31b5dfc2
Fix file names containing reserved and unsafe URL characters
This fixes the `generateFileName` function in the Strapi upload plugin,
so that reserved and unsafe charactes for URLs are replaced with
underscores.

Signed-off-by: Marvin König <dev@mkqavi.com>
2020-05-13 13:17:26 +02:00
Alexandre Bodin
f192d5e171 Merge branch 'master' into develop
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-07 13:14:23 +02:00
Alexandre Bodin
55c006a6b1 v3.0.0-beta.20.3 2020-05-07 13:02:11 +02:00
Vanessa
022b228279
Fix issue #5934 - add path folder for thumbnail and breakpoints images (#6078)
Signed-off-by: Lith <lith@amykron.com>
2020-05-07 09:28:26 +02:00