Commit graph

64 commits

Author SHA1 Message Date
SachaG
b6da989deb Move Utils.performCheck to server; convert actions to lowercase 2019-03-05 10:22:33 +09:00
SachaG
67834716da Make core components more compatible with Storybook 2019-03-02 16:28:11 +09:00
SachaG
6f93b49aba control -> input 2019-02-18 10:34:01 +09:00
SachaG
ba1e2d2460 Add pagePath field to Users schema 2019-02-12 10:43:14 +09:00
eric-burel
083a7d676b prettier commit 2019-02-05 19:36:13 +01:00
SachaG
6626aa543a Merge branch 'devel' into apollo2
# Conflicts:
#	packages/vulcan-lib/package.js
2019-02-02 09:28:08 +09:00
SachaG
a292f0908d Fix newDocument/document issue; keep newDocument for backwards compatibility 2019-01-31 21:27:20 +09:00
SachaG
a13327340c Linting 2019-01-30 10:42:17 +09:00
eric-burel
f51f558cb1 prettier commit 2019-01-29 17:32:08 +01:00
SachaG
9d27f386c9 More small fixes 2019-01-18 18:35:28 +09:00
eric-burel
eeada2d231 linting, removing apollo package 2019-01-02 18:11:10 +01:00
eric-burel
022a72e41b Merge Apollo2 branch 2019-01-02 17:18:54 +01:00
SachaG
111e00ecae Fix semicolons and other linting issues 2018-12-31 15:22:17 +09:00
SachaG
8e878258b8 Hide profile field 2018-12-02 22:34:03 +09:00
SachaG
2ca34ba335 Various small fixes 2018-10-14 18:10:32 +09:00
Eric Burel
29bcf74ed3 fixed context creation, server is working back 2018-10-02 20:33:40 +02:00
Apollinaire
169e01cc4f revert changes on Utils.getUnusedSlug and add check to users slug 2018-09-21 15:12:58 +02:00
Apollinaire
844d457cac remove Users slug onUpdate
I left the updates related to the openCrud API:
`onInsert` -> `onCreate`
And also left the update on `Utils.GetUnusedSlug`
2018-09-21 13:14:16 +02:00
Apollinaire
9bd1d36aa4 Users' slug is updated on displayname change
- The slug is updated when the displayname changes
- The `Utils.getUnusedSlug` helper function does not return empty slugs anymore (it's '0' if the `slug` argument is falsy)
2018-09-19 17:34:48 +02:00
SachaG
ab449136c1 Make canReadField work for guests too 2018-09-17 09:53:21 +09:00
SachaG
b3653fb48e Fix Users.canReadField 2018-09-16 15:36:44 +09:00
SachaG
2d4889abcc Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
# Conflicts:
#	packages/vulcan-core/lib/modules/default_resolvers.js
2018-09-14 11:10:55 +09:00
Apollinaire
eb158dcb90 [BugFix] remove document from canCreateField
When you run Users.CanCreateField with a function in `canCreate` field prop, it's trying to call a `document` arg that is undefined, because obviously there is no initial document when you try to create a document. So now it's only calling canCreate(user) as defined in the docs. I should have spotted this in #2006, sorry!
2018-09-13 19:04:45 +02:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
Vincent Roman
8e859a38fa vulcan-users - permissions - filter out array based fields 2018-09-07 15:51:45 +01:00
Eric Burel
37294c3ad2 allow to edit username, and 3rd party name if it is set 2018-09-05 17:09:23 +02:00
SachaG
86ae9d6959 Better use mutations 2018-09-04 21:47:16 +09:00
SachaG
7efcb54d16 Field permission check should always succeed when field is mutable by guests 2018-09-04 09:27:55 +09:00
SachaG
bc497c31e3 New users are considered part of the members group during creation 2018-08-31 22:51:11 +09:00
SachaG
a388e1663f Renaming 2018-08-29 20:36:36 +09:00
Sacha Greif
b67c928a3e
Merge pull request #2035 from Apollinaire/opencrudFixes
Users totalCount and removed one console.log
2018-08-21 17:41:39 +09:00
Apollinaire
56422c5e9a Add totalCount to User multi resolver 2018-08-20 12:34:09 +02:00
SachaG
c2546f07c6 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-08-20 15:21:07 +09:00
SachaG
fa6709109e Simplify/fix permissions code 2018-08-20 15:21:02 +09:00
Apollinaire
fad9db6602 register user callbacks 2018-08-16 16:06:52 +02:00
Apollinaire
45e951a7a2 createUser small fix 2018-08-16 15:34:21 +02:00
Apollinaire
595c3c3051 [opencrud] update Users Mutations to match {selector, data} args 2018-08-13 14:03:50 +02:00
SachaG
8347dffb2e Fix user creation onCreate/onInsert step 2018-08-07 10:13:59 +09:00
SachaG
bb80001056 Fix eslint issues 2018-06-30 11:34:17 +02:00
Apollinaire
a80c66e0ca Remove hardcoded limit to users List resolver
The limit is already set in `Users.getParameters`, where it's taken from the setting `maxDocumentsPerRequest`, and was overwritten to be maxed at 100.
2018-06-27 14:43:39 +02:00
SachaG
6d0dd73b41 editableBy -> canUpdate 2018-06-22 20:58:02 +09:00
SachaG
6201b55837 insertableBy -> canCreate 2018-06-22 20:57:31 +09:00
SachaG
50fba6b0a3 viewableBy -> canRead 2018-06-22 20:55:22 +09:00
Apollinaire
ac0a875c3a remove backwards comp. from function name change and add new names to...
all instances of functions Users.can... in the whole code
2018-06-21 14:27:20 +02:00
Apollinaire
8bfb9e8966 Handle openCRUD api and change function names 2018-06-21 11:02:18 +02:00
Apollinaire
b610856a8e viewableBy, editableBy, insertableBy accept arrays of functions and...
strings
2018-06-20 17:13:50 +02:00
SachaG
d8b09a396c Fix users mutations 2018-06-20 10:24:15 +09:00
SachaG
905bacbe88 Update permissions 2018-06-14 17:45:02 +09:00
SachaG
ad1f47ef73 Make debug email routes work with new APIs 2018-06-06 11:39:04 +09:00
SachaG
a532dab9b7 singleInputTemplate should use selectorUniqueInputTemplate 2018-06-06 11:00:53 +09:00