Commit graph

53 commits

Author SHA1 Message Date
Laura Klünder
d5ec23a7fb get access permissions without signing in 2023-12-24 15:40:48 +01:00
Laura Klünder
fef1fb2c06 make unlimited accesspermission tokens actually unlimited 2023-12-24 14:35:07 +01:00
Gwendolyn
1d4703f86f access restrictions can be set to public to make them available to everyone (even not logged in users)
public access restrictions do not count to the unlocked areas count
2023-12-20 23:56:32 +01:00
Laura Klünder
3477354688 access permissions can now also be given by group 2023-12-19 19:48:31 +01:00
Jenny Danzmayr
b1df8264c6 fixed resolving a users accesspermission into associated groups 2023-12-19 17:35:22 +01:00
Jenny Danzmayr
334dc9c09a fixed duplication of accessgroups in querysets in some edge cases 2023-12-19 17:07:47 +01:00
Laura Klünder
fb4da7c768 satisfy linter and type checker in many places 2022-04-03 20:19:41 +02:00
Laura Klünder
03437a3a40 update dependencies and upgrade code for django where needed/possible 2022-04-03 16:34:11 +02:00
Laura Klünder
7e56927a72 api endpoint to get the current dynamic position 2019-12-27 20:03:32 +01:00
Laura Klünder
b88b6c3a29 add new data and editor permissions 2018-09-19 19:08:47 +02:00
Laura Klünder
c5fc590c2a update to python3.7, update dependencies and fix obvious update issues 2018-09-16 20:19:13 +02:00
Laura Klünder
94734f658b dont use commas in etags 2017-12-21 05:40:35 +01:00
Laura Klünder
fbb77a3d13 cascade space and level access restrictions 2017-12-20 23:05:58 +01:00
Laura Klünder
303c4be485 add missing api endpoints for descriptions and access restriction groups 2017-12-20 22:53:57 +01:00
Laura Klünder
ee2ff8f631 group permission in control panel for better overview 2017-12-20 22:30:14 +01:00
Laura Klünder
385aebe445 improve access permission querying 2017-12-20 21:17:35 +01:00
Laura Klünder
544b3dae2e those who can grant all permissions should have all of them 2017-12-20 21:07:02 +01:00
Laura Klünder
245c101eb0 AccessRestrictionGroup 2017-12-20 20:54:58 +01:00
Laura Klünder
b852ef708e AccessPermission.unique_key 2017-12-19 12:19:31 +01:00
Laura Klünder
153c20410c only show access restrictions the user max see 2017-12-19 01:56:10 +01:00
Laura Klünder
64664fbc66 don't use tokens as primary keys 2017-12-18 14:54:45 +01:00
Laura Klünder
7e9c87c8ea allow multiple access permissions per user and restriction 2017-12-17 21:53:55 +01:00
Laura Klünder
94a51f8159 bump access permission token: don't descrase validity 2017-12-11 14:18:09 +01:00
Laura Klünder
fe3bac40c8 fix checking access permissions 2017-12-10 14:52:04 +01:00
Laura Klünder
803f9ee121 redeem token after logging in 2017-12-10 14:46:41 +01:00
Laura Klünder
101a4c6bf2 redeem access permission tokens 2017-12-10 14:13:20 +01:00
Laura Klünder
003bfbe389 fix inverted logic 2017-12-10 13:37:23 +01:00
Laura Klünder
986cad7c23 don't allow redeeming if token is no longer valid 2017-12-10 03:54:49 +01:00
Laura Klünder
2a175aa43d create and show access qr code 2017-12-10 03:49:21 +01:00
Laura Klünder
cca01e584a AccessPermissionToken 2017-12-10 03:16:07 +01:00
Laura Klünder
0c1b27d529 remove code that gave all access permissions to superusers 2017-12-08 22:32:35 +01:00
Laura Klünder
10af523737 clear access permission cache for user after save() or delete() 2017-12-08 22:26:14 +01:00
Laura Klünder
eb54ac7896 manage access permissions 2017-12-08 21:31:53 +01:00
Laura Klünder
a7c140a2ac don't cast ugettext_lazy calls to str, as our json encoder is now clever 2017-11-30 01:10:49 +01:00
Laura Klünder
bb6b726a89 remove unneeded superuser-access-code 2017-11-25 13:53:43 +01:00
Laura Klünder
7987aa08f3 fix broken q_for_request when wrapped querysets are used 2017-11-25 13:47:47 +01:00
Laura Klünder
cdca60b307 superusers should have all permissions for now 2017-11-25 13:47:31 +01:00
Laura Klünder
ae5bbb7705 superusers get their own cache key 2017-11-05 16:47:25 +01:00
Laura Klünder
949b88389e add Location.details_display() 2017-11-02 13:35:58 +01:00
Laura Klünder
31bc299f77 superusers have all access permissions 2017-10-31 18:09:55 +01:00
Laura Klünder
7a2ecb60ed add ETag to editor 2017-10-27 17:08:36 +02:00
Laura Klünder
85a0993799 add ETag to mapdata api 2017-10-27 16:40:15 +02:00
Laura Klünder
1bf61f5f0f access_permissions should be a set 2017-10-24 23:24:45 +02:00
Laura Klünder
d34afc37c6 expire access permission cache earlier if a permission will expire 2017-10-24 22:52:38 +02:00
Laura Klünder
10da4f3bb6 implement access permissions 2017-10-24 22:45:57 +02:00
Laura Klünder
7c44a9d74f add AccessPermission modeling 2017-10-24 22:13:53 +02:00
Laura Klünder
756c3976d0 move renderscad into Level model 2017-08-06 22:07:34 +02:00
Laura Klünder
890225784a respect access restrictions in editor API 2017-07-13 22:22:13 +02:00
Laura Klünder
eaf1d20427 move q_for_request to AccessRestriction 2017-07-13 19:26:10 +02:00
Laura Klünder
bbdfc9aadc respect access_restriction in mapdata API 2017-07-13 19:22:57 +02:00