Commit Graph

94 Commits

Author SHA1 Message Date
Dariusz Niemczyk f1143dc4f1
hscloud: Add single address authentication 2023-09-19 18:03:57 +02:00
Dariusz Niemczyk 38c7245a3f
auth: cleanup 2023-09-09 19:26:36 +02:00
Dariusz Niemczyk f8b3dd6bf7
auth: require necessary authentication or in lan
middleware was not written properly, now requires authentication or
being in lan for readaccess, otherwise redirecting to login page
2023-09-09 17:00:19 +02:00
Dariusz Niemczyk f1335f0565
auth: fix auth paths 2023-09-09 15:43:23 +02:00
Dariusz Niemczyk 15bf813b04
django: force auth for all requests 2023-08-25 21:06:01 +02:00
Dariusz Niemczyk 9200bdbb3b
authentication: always require if defined env
if SPEJSTORE_REQUIRE_AUTH is 'true' then always require auth
otherwise make it read-only on unauthorized access
2023-08-13 20:10:00 +02:00
Dariusz Niemczyk d942c99cb9
Fix parent autocompletes 2023-08-04 18:02:08 +02:00
Dariusz Niemczyk e1a22100c4
Remove unused select2 refs 2023-08-04 17:46:08 +02:00
Dariusz Niemczyk 4fc3629dcd
Fix users searchfield not working 2023-08-04 17:26:25 +02:00
Dariusz Niemczyk 8048fccede
Make paths publically available due to beyondspace 2023-07-23 17:31:37 +02:00
Dariusz Niemczyk 3a286a5bc6
Add autocomplete for users in Admin and fix perms 2023-07-20 14:49:44 +02:00
Dariusz Niemczyk 2a70d2cb31
Add configurable auth-by-lan values 2023-07-17 23:12:02 +02:00
Dariusz Niemczyk a6705a956f
Remove legacy labels from django admin 2023-07-17 23:04:30 +02:00
Dariusz Niemczyk 5012a10298
Hack: admin props combobox works(?) 2023-07-17 23:04:30 +02:00
Dariusz Niemczyk 027bcfcde5
Hack: admin props combobox works(?) 2023-07-17 22:44:44 +02:00
Dariusz Niemczyk 154e1079da
Make HSLan always authenticated for GET 2023-07-17 21:35:45 +02:00
Dariusz Niemczyk 30c3c3eb7a
Deduplicate print function 2023-07-17 20:18:18 +02:00
Dariusz Niemczyk f7688262e4
Fix API views 2023-07-17 15:46:00 +02:00
Dariusz Niemczyk a8f7530263
Force authorization for all routes 2023-07-13 21:01:00 +02:00
Dariusz Niemczyk a0c6d87adb
Add missing migration (django unhappy) 2023-07-11 23:29:28 +02:00
Dariusz Niemczyk efcd932481
re-implement get_roots in view 2023-07-11 17:52:38 +02:00
Dariusz Niemczyk 837734a655
Fix admin not searching properly and make it great 2023-07-11 17:52:38 +02:00
Dariusz Niemczyk 45ad9bf88c
Migrate old django to the newest version
Django 1.x is no longer supported, and the app needed migration to 4.x
A lot of libraries has been unsupported or removed, so there's a few
of unrelated changes, but necessary for the migration process to work.
2023-07-11 17:52:38 +02:00
Dariusz Niemczyk 659f04ce9c
Blackify the code (autoformat) 2023-07-11 15:34:35 +02:00
radex 3de626d5c5 labels via api + remove redundant nav item 2020-05-28 21:23:51 +02:00
radex 1f5a053a19 Less confusing "Print labels" button + explanation 2020-05-28 21:23:51 +02:00
radex 5160052dfd You can now print Items, w/o explicitly defining Labels 2020-05-28 21:23:51 +02:00
radex 2e0c031fab /items/:id now fetches via short_id or label.id (now considered legacy) 2020-05-28 21:23:51 +02:00
radex a82668ca01 improve /api/1/items/:item_id 2020-05-28 21:23:51 +02:00
radex 0c883bed2f simplify item info 2020-05-28 21:23:51 +02:00
radex 7ac99dd44b introduce item.short_id + lookup by short id 2020-05-28 21:23:51 +02:00
radex d313274615 better index 2020-05-28 21:23:51 +02:00
Piotr Dobrowolski 1587f26181 attempt at fixing missing label editor 2020-05-14 23:16:53 +02:00
Piotr Dobrowolski 83e2afcf06 Check in some random production changes 2020-05-12 20:58:10 +02:00
radex af9ed46861 fix print button 2020-05-12 20:27:08 +02:00
radex 4acccb7d94 Hide item history by default 2020-05-12 20:27:08 +02:00
radex 786f2a3675 title nice 2020-05-12 20:27:08 +02:00
radex 7f12474e76 some admin ux improvements 2020-05-12 20:27:08 +02:00
radex 60601b270e Search everywhere 2020-05-12 20:27:08 +02:00
radex 5a70e382b8 UX improvements 2020-05-12 20:27:08 +02:00
radex 16ff203aaa Nicer printing UI, allow to print 2 easily, hide useless/empty shit 2020-05-12 20:27:08 +02:00
radex 93ebd810aa Allow label printing api to print multiple copies of a label 2020-05-12 20:27:08 +02:00
Piotr Dobrowolski fedf3dca80 Add apitoken endpoint 2019-02-02 13:21:15 +01:00
d42 5fa30b7e3a unregister social admin views 2018-10-10 21:18:25 +02:00
d42 45c4772f78 staff ItemAdmin 2018-10-10 20:37:56 +02:00
d42 2690136711 undefecate prop query :^) 2018-10-10 20:37:30 +02:00
d42 2ff57e3e0a initial oauth commit 2018-10-10 19:59:54 +02:00
d42 65871f578d categories 2018-09-26 22:39:51 +02:00
d42 85a85ed4c6 bump django 2018-09-26 22:20:16 +02:00
d42 8d26bac6f9 username as name everywhere 2018-04-28 21:25:08 +02:00