Commit Graph

122 Commits

Author SHA1 Message Date
Rijk van Zanten
b7d87e581a System permissions for app access (#4004)
* Pass relations through schema, instead of individual reads

* Fetch field transforms upfront

* Fix length check

* List if user has app access or not in accountability

* Load permissions up front, merge app access minimal permissions

* Show app access required permissions in permissions overview

* Show system minimal permissions in permissions detail

* Fix app access check in authenticate for jwt use

* Fix minimal permissions for presets

* Remove /permissions/me in favor of root use w/ permissions

* Fix logical nested OR in an AND

* Use root permissions endpoint with filter instead of /me

* Allow filter query on /permissions

* Add system minimal app access permissions into result of /permissions

* Remove stray console log

* Remove stray console.dir

* Set current role as role for minimal permissions

* Fix no-permissions state for user detail

* Add filter items function that allows altering existing result set
2021-02-11 12:50:56 -05:00
Rijk van Zanten
41240fae14 Revert patch on fields root (#3994)
Fixes #3991
2021-02-10 09:51:10 -05:00
rijkvanzanten
82f9af67e0 Validate field update payload
Fixes #3928
2021-02-09 18:45:21 -05:00
Rijk van Zanten
e6fa07dba8 Allow field creation with just field/type combo (#3990)
Fixes #3926
2021-02-09 18:43:25 -05:00
andriusign
c00e89a8c0 Allow to pass custom URL for user invitation (#3972)
* Allow to pass custom URL for invitation to enable verification of user's email on custom Frond-End page (other than Directus Admin page).

* Update api/src/services/users.ts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* Update api/src/services/users.ts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* Update api/src/services/users.ts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-02-08 16:39:11 -05:00
WoLfulus
b8e7c80b72 Application initialization events (#3680)
* Adds `not_found` hook

* Separate hooks and endpoints initialization process

* Adds additional application events

* Remove unused import

* Change the event order to accound for notFound and errorHandler

* Change emitAsync.catch to use the emitAsyncSafe function

* Updated docs, reordered table by lifecycle and usage
2021-02-08 12:30:09 -05:00
Rijk van Zanten
817ccf3620 Overhaul docs (#3951)
* Add Quickstart Guide

* Update installation

* Remove unused files

* Update support/backing

* Tweaks in concepts

* Setup file structure for API reference 2.0

* Setup page layout for reference

* Add clean-urls plugin

* getting started updates

* Finish authentication rest

* getting started updates

* Render stylus in 2 spaces

* Various

* Various

* Finish activity docs

* Add collections reference

* Add extension reference

* concepts updates

* Fields/tweaks

* Add files doc

* Add revisions

* concepts docs

* More api reference

* Finish rest api reference (finally)

* initial concepts

* More things

* Add assets api ref

* Move sections from file to assets

* Add environment variables

* contributing docs

* Add field transforms page

* Left align table headers

* concept links

* Add API config

* Fix mobile nav

* Add migrating a project

* doc link fixes

Co-authored-by: Ben Haynes <ben@rngr.org>
2021-02-05 18:51:54 -05:00
rijkvanzanten
a0fb2abbe9 Remove batch delete for fields/collections
It's too destructive
2021-02-04 11:19:32 -05:00
rijkvanzanten
fbd6a4a6b2 Validate that to-be-deleted record is comment before allowing 2021-02-03 18:18:09 -05:00
rijkvanzanten
4992a17a8b Validate comment update 2021-02-03 18:12:13 -05:00
Rijk van Zanten
5a019b4284 Implemented Union Types in GraphQL (#3852)
* Fetch correct amount of data

* Allow system required data to be returned in items service

* Fetch non-requested required data, find type through context

Fixes #3718
2021-01-29 16:23:33 -05:00
rijkvanzanten
d2705713e1 Use body for moving files to folder
Fixes #19
2021-01-20 21:37:46 -05:00
rijkvanzanten
d98300d528 Fix graphql response type 2021-01-14 12:52:57 -05:00
Justin Hiller
ff399f94b6 fix: mode not correctly set in refresh handler 2021-01-14 14:22:48 +01:00
rijkvanzanten
178e91106b Remove unused imports 2021-01-12 16:15:44 -05:00
rijkvanzanten
6b029b416b iRemove imported types that aren't needed 2021-01-12 16:11:08 -05:00
rijkvanzanten
c1f87113bf use express types instead of custom versions 2021-01-12 16:06:35 -05:00
Rijk van Zanten
a41559b32f Merge branch 'main' into fix/async-handlers 2021-01-12 12:27:27 -07:00
rijkvanzanten
16a8aa7c47 Pipe graphql through respond middleware
Fixes #3577
2021-01-12 11:30:13 -05:00
Mustafa Sancu
3565ba5771 Storage asset transform Presets Only value fix 2020-12-31 00:04:53 +03:00
rijkvanzanten
e1248aab40 Remove wrong respond middelware in oAuth check
Fixes #3380
2020-12-23 09:54:50 -05:00
WoLfulus
c5f3802da3 Replace express-async-handler for a local function. 2020-12-22 17:11:08 -03:00
rijkvanzanten
9974cb6050 Add health endpoint 2020-12-21 15:22:39 -05:00
rijkvanzanten
d08c91389a Remove quotes from max-age in cache-control 2020-12-17 18:57:33 -05:00
rijkvanzanten
bbae89d633 Minor code cleanup 2020-12-16 16:57:26 -05:00
rijkvanzanten
651263cbde Merge branch 'main' into Kinzi/main 2020-12-16 16:54:54 -05:00
rijkvanzanten
bfb2df432e Replace ASSETS_CACHE_CONTROL with ASSETS_CACHE_TTL 2020-12-16 14:47:15 -05:00
rijkvanzanten
ab0ade5375 Add way to set Cache-Control header for static assets
Fixes #3332
2020-12-16 13:53:50 -05:00
Igor Savin
7cddb458cb Run prettier across app and api 2020-12-08 02:22:00 +02:00
rijkvanzanten
a9ffc40979 Fix schema not handling uppercases in PG
Fixes #3213
2020-11-27 19:31:25 -05:00
Sebastian Kinzlinger
0a1d59dd45 Update auth.ts
Pass custom `reset_url` to `requestPasswordReset`.
2020-11-17 11:02:28 +02:00
rijkvanzanten
89293a3db7 Merge branch 'main' into sdk 2020-11-15 20:03:52 -05:00
rijkvanzanten
e30170ab0a Fix asset permission check when you don't have settings
Fixes #887
2020-11-13 12:18:23 -05:00
rijkvanzanten
8057081ce6 Re-fix @types/express-session situation
Fixes #991
2020-11-13 10:11:23 -05:00
rijkvanzanten
3654da7fa9 Work around breaking change in @types/express-sesssion
Fixes #927
2020-11-11 09:41:25 -05:00
rijkvanzanten
8cbdfb409b Use prefetched schema info 2020-11-09 17:13:48 -05:00
rijkvanzanten
57b7b3db06 Update user invite UX, add accept invite route
Fixes #886, closes #891
2020-11-05 18:54:52 -05:00
rijkvanzanten
8dbfd34862 Update batch style to drawer 2020-11-05 15:39:07 -05:00
rijkvanzanten
a432640ecb Add batch delete w/ keys in body
Fixes #819
2020-11-05 14:47:57 -05:00
rijkvanzanten
9471bc1c95 Start on new batch operations 2020-11-05 14:21:10 -05:00
rijkvanzanten
d8339ae70d Merge branch 'main' into assets 2020-10-29 16:03:04 -04:00
rijkvanzanten
ee9baf02c0 Move system fields out of DB 2020-10-29 13:06:37 -04:00
rijkvanzanten
9d9d04557f Add accept invite 2020-10-27 16:55:49 +01:00
rijkvanzanten
672a3c9eaa Merge branch 'main' into sdk 2020-10-27 10:56:06 +01:00
rijkvanzanten
3d08409290 Merge branch 'main' into assets 2020-10-26 19:44:50 +01:00
rijkvanzanten
91bfcb875f Don't auto convert , to arrays in env
Fixes #782
2020-10-26 19:38:36 +01:00
rijkvanzanten
b4f82efcee Return project branding in /server/info endpoint at all times 2020-10-26 18:52:51 +01:00
rijkvanzanten
ea62106d61 Move generate hash into dedicated endpoint 2020-10-21 15:58:27 +02:00
rijkvanzanten
c2106307b5 Start on reference / to-do 2020-10-21 15:08:00 +02:00
rijkvanzanten
c3f1b271b8 Remove unused import 2020-10-20 16:41:26 -04:00