1541 Commits

Author SHA1 Message Date
soupette
044c47e732 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:27 +02:00
soupette
7c8140491d Add permissions to edit page
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:25 +02:00
soupette
51722ca3a1 Add permissions to homepage
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:23 +02:00
Convly
ef94229d81 Add Condition Provider & Permissions Engine 2020-07-08 11:05:49 +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
7e1a91dda6 add use strict
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:08 +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
50c16dee16 Move plugins trads
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:05 +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
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
Alexandre Bodin
7a056c2f45 Add admin registeration API
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:53:19 +02:00
Alexandre Bodin
252bb3afe3 Remove email update of admin during test that break next tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:51:03 +02:00
Alexandre Bodin
a4f294f1c4 Use passport standard error handling
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:24:38 +02:00
Convly
364de7d2e8 Update admin::administrator queries to match its new name
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:18 +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
Juan David Landazabal
f4959d9560
Allow custom populate in ctx.state.user (#6770)
* Allow custom populate in user model

Signed-off-by: Juan David <juand.business@gmail.com>

* use merge from lodash to join a custom populate

Signed-off-by: Juan David <juand.business@gmail.com>

* refactor fech
2020-07-06 09:43:30 +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
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
soupette
08ad19babe Fixes #6733
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-06-19 08:29:53 +02:00
Alexandre Bodin
c909d7162d v3.0.3 2020-06-18 19:17:15 +02:00
Christos Malliaridis
d77ab73d75 Remove unnecessary import of useState
Signed-off-by: Christos Malliaridis <c.malliaridis@gmail.com>
2020-06-17 11:09:18 +02:00
Christos Malliaridis
00b1c7571a
Merge branch 'master' into fix/input-checkbox-behavior 2020-06-17 10:53:33 +02:00
Jim LAURIE
4582c55bc3
fix: init reset password permission close #6440 (#6696)
Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>
2020-06-16 11:51:27 +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
Gomez23
ba6695a87c
Remove platform check (#6546) 2020-06-15 11:00:18 +02:00
Alexandre BODIN
48a818041e
Fix some user permission issue (#6629)
* Fix some security issue

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

* compt node 10

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-06-15 10:34:59 +02:00
Christos Malliaridis
371a741c69 Move input selected state to parent component
Move input selected state from controller to parent component (plugin)
to prevent multiple selections and highlighting of checkbox fields
from different controllers.

Signed-off-by: Christos Malliaridis <c.malliaridis@gmail.com>
2020-06-14 05:19:58 +02:00
Christos Malliaridis
52a54de2a3 Move click action to wrapper and update styles
Move click action to wrapper (parent) to allow clicks on
whole area of checkbox. Also update the highlighting and
visibility on hover of configuration wheel for better
usability. This way the user learns that clicking on the
item or wheel opens the configuration and clicking on
the text or checkbox toggles the checkbox.

Signed-off-by: Christos Malliaridis <c.malliaridis@gmail.com>
2020-06-14 05:19:57 +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
Damien Tsenkoff
1f9d6af6c9
🚑 Forgot/Reset password fix for MongoDB - only update mandatory fields (#6327)
* 🚑 Reset password only update mandatory fields

Signed-off-by: Damien Tsenkoff <d.tsenkoff@gmail.com>

* 🔥 Remove unused / unnecessary code

Signed-off-by: Damien Tsenkoff <d.tsenkoff@gmail.com>
2020-06-01 10:33:50 +02:00
Alexandre Bodin
5b64e05d7f v3.0.1 2020-05-29 09:38:21 +02:00
Alexandre Bodin
bb618511aa Merge branch 'documentation' 2020-05-28 11:39:08 +02:00
Scott Agirs
728e8c63b9
[typo] Persmissions > Permissions (#6390)
Signed-off-by: ScottAgirs <scott@ijs.to>
2020-05-27 17:22:19 +02:00
Alexandre Bodin
0d5ccbfd2d Merge branch 'master' into documentation
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-26 15:12:18 +02:00
Alexandre Bodin
6bb7a7f198 v3.0.0 2020-05-26 15:09:32 +02:00
Drew Town
549803adfc
Sanitize user object in user plugin update method return value (#6003)
* Sanitize user object in update method return value

Signed-off-by: Drew Town <drew.town+github@gmail.com>

* Sanitize returned user data on create and destroy
2020-05-25 17:39:33 +02:00
Alexandre BODIN
f32bc7b30b
Merge pull request #5655 from ScottAgirs/patch---adjust-naming-to-password-mutations
Fix #5653: improve UserPermissions - password mutations
2020-05-25 15:44:48 +02:00
Jim LAURIE
fc4cef9926 fix: fix pr feedback
Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>
2020-05-22 10:34:38 +02:00
Jim LAURIE
16c304d710 Merge branch 'master' of github.com:strapi/strapi into jwtconfig 2020-05-22 10:22:14 +02:00
ScottAgirs
ef861f19ff [bugfix] register() input, payload
Signed-off-by: ScottAgirs <scott@ijs.to>
2020-05-19 12:03:31 -04:00
ScottAgirs
ebed726d7b [bugfix] register(input: UsersPermissionsRegisterInput)
Signed-off-by: ScottAgirs <scott@ijs.to>
2020-05-19 11:58:36 -04:00
Alexandre BODIN
9f5844949d
Merge pull request #6124 from frosato-dev/master
Prevent user registration with confirmed status
2020-05-19 13:21:58 +02:00
François Rosato
37e97d6219 Prevent user registration with confirmed status
Pull request https://github.com/strapi/strapi/pull/6072 aimed to add security by preventing creation of user with email confirmation enabled. By limiting user params to 'username', 'email', 'password', the current code do not allow adding custom field to user entity during registration which may breaks existing applications that have added required custom fields into user model .

Signed-off-by: François Rosato <francois.rosato@ekino.com>
2020-05-19 11:52:45 +02:00