Commit graph

535 commits

Author SHA1 Message Date
Methapon Metanipat
b53dcb3a19 feat: permission control 2024-09-05 09:01:34 +07:00
Methapon Metanipat
42cce880cd refactor: separate function 2024-09-05 09:01:28 +07:00
Methapon Metanipat
05a959ee55 feat: user permission on delete 2024-09-04 17:41:54 +07:00
Methapon Metanipat
2cd92b2234 fix: stats not take scope into account 2024-09-04 17:04:54 +07:00
Methapon Metanipat
91d741f363 refactor: move file out 2024-09-04 16:56:10 +07:00
Methapon Metanipat
16777d0514 refactor: update role 2024-09-04 16:51:42 +07:00
Methapon Metanipat
49547c8373 refactor: scope view 2024-09-04 16:47:31 +07:00
Methapon Metanipat
94cb990b9c fix: permission failed 2024-09-04 16:47:14 +07:00
Methapon Metanipat
859b733245 fix: cannot set role as expected 2024-09-04 16:19:07 +07:00
Methapon Metanipat
4de3c2409f feat: filter view by role 2024-09-04 15:51:01 +07:00
Methapon Metanipat
36975fd8de feat: add permision check 2024-09-04 15:21:11 +07:00
Methapon Metanipat
597c107420 refactor: adjust function 2024-09-04 15:19:15 +07:00
Methapon Metanipat
6baf79d76d chore: format 2024-09-04 15:19:02 +07:00
Methapon Metanipat
10c73ae226 fix: error updatedAt 2024-09-04 14:28:29 +07:00
Methapon Metanipat
0c80d8fbdb refactor: remove unused role 2024-09-04 14:12:57 +07:00
Methapon Metanipat
c5600add96 fix: change role name 2024-09-04 14:01:59 +07:00
Methapon Metanipat
856bdef0f6 refactor: small adjustment 2024-09-04 13:50:04 +07:00
Methapon Metanipat
e61111cac7 refactor: view condition and permission 2024-09-04 13:50:04 +07:00
Methapon Metanipat
9f426d9b08 refactor: permission user 2024-09-04 11:40:55 +07:00
Methapon Metanipat
34668b3569 refactor!: remove unnecessary endpoint 2024-09-04 11:40:40 +07:00
Methapon Metanipat
3fb15f8344 fix: count by group 2024-09-04 10:43:46 +07:00
Methapon Metanipat
03707b7bd8 feat: add flag 2024-09-03 16:54:52 +07:00
Methapon Metanipat
d970486348 fix: type 2024-09-03 14:07:30 +07:00
Methapon Metanipat
4b08d12845 refactor!: remove product type 2024-09-03 14:06:02 +07:00
Methapon Metanipat
4f84330cbc refactor: permission 2024-09-03 09:47:58 +07:00
Methapon Metanipat
cae2ab7ba3 refactor: roles 2024-09-03 09:24:27 +07:00
Methapon Metanipat
dfb2ab3928 refactor: use kysely query builder instead 2024-09-03 09:24:10 +07:00
Methapon Metanipat
7fa99fab8f feat: add headoffice as relation 2024-08-30 11:33:08 +07:00
Methapon Metanipat
1f47882e19 fix: wrong field extract 2024-08-30 11:20:30 +07:00
Methapon Metanipat
bcfc04d6cf fix: wrong condition 2024-08-30 10:51:35 +07:00
Methapon Metanipat
e911695f3a change: make user can view only user within branch 2024-08-30 10:51:35 +07:00
Methapon Metanipat
cd153b062a fix: branch manager must not increase your own role 2024-08-30 10:04:59 +07:00
Methapon Metanipat
9d52eb99a5 fix: wrong permission check 2024-08-30 09:57:22 +07:00
Methapon Metanipat
78ce80b1a2 fix: branch manager cannot create user 2024-08-30 09:51:01 +07:00
Methapon Metanipat
04ef94fee1 fix: build error 2024-08-30 09:48:21 +07:00
Methapon Metanipat
7f4103c92c fix: wrong endpoint 2024-08-30 09:46:38 +07:00
Methapon Metanipat
e367fca56e refactor: also return employee count of customer 2024-08-30 09:44:00 +07:00
Methapon Metanipat
23717bacaf feat: insert province district sub-district into db 2024-08-29 17:10:44 +07:00
Methapon Metanipat
09cb20c57d feat: check if user exist 2024-08-29 14:38:45 +07:00
Methapon Metanipat
8a2b122d7f fix: code case 2024-08-29 13:09:44 +07:00
Methapon Metanipat
e7a70e8653 feat: add web url 2024-08-29 11:53:00 +07:00
Methapon Metanipat
35600b9d7e feat: map image 2024-08-29 09:42:33 +07:00
Methapon Metanipat
d11fb007b3 feat: add set image endpoints for employee 2024-08-28 11:41:39 +07:00
Methapon Metanipat
75359a8d4e feat: add workflow for local lan deploy 2024-08-28 11:13:35 +07:00
Methapon Metanipat
f4723e4335 feat: allow disable logger by .env 2024-08-28 11:08:50 +07:00
Methapon Metanipat
5749b85323 fix: wrong string conversion 2024-08-28 09:28:35 +07:00
Methapon Metanipat
fec6812ff6 fix: add relation when get by id 2024-08-27 18:14:50 +07:00
Methapon Metanipat
ba23ce870d chore: make nodemon watch .env file 2024-08-27 16:56:20 +07:00
Methapon Metanipat
4341e57bef feat: change uuid to cuid 2024-08-27 14:28:14 +07:00
Methapon Metanipat
3d3bc38106 feat: add employee field 2024-08-27 14:27:39 +07:00