Commit Graph

32 Commits

Author SHA1 Message Date
long2ice
e99d673191 Make get_current_admin error to 401 and add 401 error page. 2021-08-31 11:27:23 +08:00
long2ice
c4e640b24c refactor: ComputeField 2021-07-21 21:04:45 +08:00
long2ice
42c7351914 Fix get_model 2021-06-03 21:56:29 +08:00
long2ice
18e0f7498c Add resource.get_compute_fields. 2021-05-24 20:03:48 +08:00
long2ice
a3c01fc42c Remove can_create and add get_toolbar_actions. 2021-05-19 15:30:18 +08:00
long2ice
50ebd3d864 bug fix 2021-05-14 22:38:01 +08:00
long2ice
064eceea57 add request to parse_value 2021-05-06 20:07:52 +08:00
long2ice
e17d6a38c6 add row_attributes and cell_attributes 2021-05-05 23:14:00 +08:00
long2ice
9b14227d24 update docs 2021-05-05 16:10:38 +08:00
long2ice
6af5852082 update 2021-05-04 22:33:30 +08:00
long2ice
1118e990a9 Sync pro 2021-05-01 20:45:28 +08:00
long2ice
8bb34f2032 Fix example 2021-04-28 22:51:53 +08:00
long2ice
7f957661ec new project 2021-04-25 17:17:21 +08:00
swevm
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
swevm
861aea95ab Fix style 2021-01-19 18:16:23 +01:00
swevm
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
long2ice
2d1245d26b Fix latest tortoise error. 2021-01-06 13:40:38 +08:00
swevm
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
long2ice
c6a8409e56 Fix check 2020-10-19 17:57:13 +08:00
long2ice
2dd95e364a add adminlog 2020-09-01 23:50:00 +08:00
long2ice
afabc6cd27 add Makefile
update cli
2020-05-22 21:28:32 +08:00
long2ice
18871df38f change admin init 2020-05-02 21:16:23 +08:00
long2ice
7ad7c874f0 fix bulk action
fix export
2020-04-29 11:17:48 +08:00
long2ice
dffd81f8fa add more site config 2020-04-26 23:15:23 +08:00
long2ice
116b02bdea update README.rst 2020-04-20 15:43:03 +08:00
long2ice
4e70174c85 add builtin permissions
remove orjson
fix tortoise error
2020-04-15 18:59:41 +08:00
long2ice
51e5f7c043 add bulk actions support 2020-04-11 19:53:41 +08:00
long2ice
3cdfdd2b36 add xlsx export 2020-04-10 23:30:57 +08:00
long2ice
d8afedced8 fix create error 2020-04-10 16:20:36 +08:00
long2ice
9658eacc36 add sort support
add ManyToManyField support
2020-04-09 23:58:34 +08:00
long2ice
da6be48f30 not edit readonly field
json field support
2020-04-08 01:31:50 +08:00
long2ice
82a26ed9c4 first commit 2020-04-06 18:21:35 +08:00