20 Commits

Author SHA1 Message Date
7f957661ec new project 2021-04-25 17:17:21 +08:00
1d79c1ff73 Simplified "has permission" logic and fixed a major flow in "{resoruce}/grid" not applying correct data to _actions
Function has_resource_permission() need to live in depends.py as it cause circular dependencies if in common.py
2021-01-21 10:48:02 +01:00
861aea95ab Fix style 2021-01-19 18:16:23 +01:00
643e66560c Only the buttons corrsponding to what actions uses are allowed to execute are displayed in frontend.
Changes:
-One extre function added to depends that only check is user has specific permission added
-Populate _action to returned dict in {resource}/grid
2021-01-17 10:29:23 +01:00
2d1245d26b Fix latest tortoise error. 2021-01-06 13:40:38 +08:00
54a9e958fe Working decoding for JWT.
Fixes:
401 error for all endpoints requiring JWT token

In factory.py when JWT are encoded HS256 is specified as algorithm. Same need to be done for decoding.

Making algorithm configurable is likely better but for now this works.
2021-01-04 12:39:38 +01:00
c6a8409e56 Fix check 2020-10-19 17:57:13 +08:00
2dd95e364a add adminlog 2020-09-01 23:50:00 +08:00
afabc6cd27 add Makefile
update cli
2020-05-22 21:28:32 +08:00
18871df38f change admin init 2020-05-02 21:16:23 +08:00
7ad7c874f0 fix bulk action
fix export
2020-04-29 11:17:48 +08:00
dffd81f8fa add more site config 2020-04-26 23:15:23 +08:00
116b02bdea update README.rst 2020-04-20 15:43:03 +08:00
4e70174c85 add builtin permissions
remove orjson
fix tortoise error
2020-04-15 18:59:41 +08:00
51e5f7c043 add bulk actions support 2020-04-11 19:53:41 +08:00
3cdfdd2b36 add xlsx export 2020-04-10 23:30:57 +08:00
d8afedced8 fix create error 2020-04-10 16:20:36 +08:00
9658eacc36 add sort support
add ManyToManyField support
2020-04-09 23:58:34 +08:00
da6be48f30 not edit readonly field
json field support
2020-04-08 01:31:50 +08:00
82a26ed9c4 first commit 2020-04-06 18:21:35 +08:00