Commit Graph

596 Commits

Author SHA1 Message Date
Jon
7cfede45b8 refactor(access): Rename Team Button "new user" -> "Assign User"
!35 fixes #110
2024-07-11 14:00:55 +09:30
Jon
65de93715d refactor(access): model pk and name not required context for adding a device
!35
2024-07-11 13:59:58 +09:30
Jon
fea7ea3119 refactor: rename field "model notes" -> "Notes"
!35 fixes #102 #104
2024-07-11 13:58:14 +09:30
Jon
524a70ba18 fix(access): correctly set team user parent model to team
!35 fixes #109
2024-07-11 13:43:27 +09:30
Jon
29c4b4a0ca fix(access): fallback to django permissions if org permissions check is false
!35 #109 fixes #101
2024-07-11 13:41:36 +09:30
Jon
f5ae01b08d fix(access): Correct logic so that org managers can see orgs they manage
!35 fixes #100
2024-07-10 17:23:24 +09:30
Jon
ee3dd68cfe fix(base): add missing content_title to context
!35 #74
2024-07-10 15:58:18 +09:30
Jon
25efa31493 fix(access): Enable Organization Manager to view organisations they are assigned to
!35 fixes #100
2024-07-10 15:14:53 +09:30
Jon
abe1ce6948 fix(ui): display organization manager name instead of ID
!35
2024-07-09 22:31:55 +09:30
Jon
86ed7318ec fix(access): ensure name param exists before attempting to access
!35
2024-07-09 17:29:48 +09:30
Jon
b42bb3a30e feat(access): enable non-organization django permission checks
!39 #76
2024-07-09 02:26:21 +09:30
Jon
87a1f2aa20 feat(base): Add background worker
!39 #76
2024-07-08 22:38:06 +09:30
Jon
4fdb3df06e test: Unit Tests TenancyObjects
!33 #15
2024-06-20 03:12:43 +09:30
Jon
7eb0651b89 test: Test Cases for TenancyObjects
!33 #15
2024-06-20 03:07:39 +09:30
Jon
58b134ae30 refactor(tests): move unit tests to unit test sub-directory
!33 #15
2024-06-19 22:58:50 +09:30
Jon
58051f297f test(access): TenancyObject field tests
!33 #15
2024-06-19 11:51:03 +09:30
Jon
0a9a5b20fa test(access): remove skipped api tests for team users
teamusers not accessible from api

!33 #15
2024-06-19 10:52:24 +09:30
Jon
8abbf2ff9e docs(access): correct doc warnings
!28
2024-06-17 23:42:54 +09:30
Jon
27b62d1018 docs(access): add link to docs on team page
!28 closes #39
2024-06-17 23:27:11 +09:30
Jon
aef276b76c docs(access): add link to docs on organization page
!28 #39
2024-06-17 23:26:52 +09:30
Jon
c15eca2e58 test(access): team user model permission check for organization manager
!28 #39 #15
2024-06-17 22:59:26 +09:30
Jon
33b10f7109 test(access): team model permission check for organization manager
!28 #39 #15
2024-06-17 22:53:23 +09:30
Jon
9a40d095e8 test(access): organization model permission check for organization manager
!28 #39 #15
2024-06-17 22:52:57 +09:30
Jon
991ddc3d7f refactor(access): relocate permission check to own function
!28 #39
2024-06-17 22:52:02 +09:30
Jon
35c11ed6f0 test(access): add test cases for model delete as organization manager
!28 #39 #15
2024-06-17 22:41:40 +09:30
Jon
e4f5ec4892 test(access): add test cases for model addd as organization manager
!28 #39 #15
2024-06-17 22:40:35 +09:30
Jon
109fc49d76 test(access): add test cases for model change as organization manager
!28 #39 #15
2024-06-17 22:17:59 +09:30
Jon
da8946fcb6 test(access): add test cases for model view as organization manager
!28 #39 #15
2024-06-17 22:13:41 +09:30
Jon
848661856a feat(access): add notes field to organization
!28 #39 #13
2024-06-17 19:40:46 +09:30
Jon
14acea31f2 feat(access): add organization manger
org managager regardless of permissions can conduct all operations against an organization.

!28 #39
2024-06-17 19:38:11 +09:30
Jon
320d3f1a13 test: refactor api model permission tests to use an abstract class of test cases
!27 #15
2024-06-16 03:43:17 +09:30
Jon
e72eedf077 test: refactor model permission tests to use an abstract class of test cases
!27 #15
2024-06-15 21:40:33 +09:30
Jon
6286b06270 test: refactor history entry to have test cases in abstract classes
!27 #15
2024-06-15 18:50:10 +09:30
Jon
34db5f863a test: add placeholder tests
!27 #15
2024-06-15 16:31:23 +09:30
Jon
372eefa5c4 test(access): test team history
!27 #15
2024-06-15 15:54:32 +09:30
Jon
733a31ad71 test(access): ensure team user history is created and removed as required
!27 #15
2024-06-15 15:06:51 +09:30
Jon
4a19bb2ecc test(access): ensure history is removed on team delete
!27 #15
2024-06-15 14:13:37 +09:30
Jon
29a8969288 test(access): ensure history is removed on item delete
!27 #15
2024-06-15 14:12:19 +09:30
Jon
eb8dca9806 fix(access): overridden save to use default attributes
!27
2024-06-15 14:08:53 +09:30
Jon
85bf1b9907 feat(access): Add a notes field to teams
!21 #13
2024-06-12 05:57:55 +09:30
Jon
ca8e0c07ea feat(base): Add a notes field to TenancyObjetcs class
!21 #13
2024-06-12 05:57:37 +09:30
Jon
4016d4c200 refactor(access): migrate team users view to use forms
!21
2024-06-12 04:31:02 +09:30
Jon
f36662ca82 refactor(access): migrate teams view to use forms
!21
2024-06-12 04:25:32 +09:30
Jon
3e340a47b8 refactor(access): migrate organization view to use form
!21
2024-06-12 04:23:24 +09:30
Jon
505f4cfdd9 fix(api): ensure proper permission checking
!24 fixes #55
2024-06-11 22:18:50 +09:30
Jon
fe0696fee6 feat(models): add property parent_object to models that have a parent
!22
2024-06-10 00:51:59 +09:30
Jon
11ec62feb6 test(config_management): config group software permission for add, change and delete
!22 #43
2024-06-09 18:11:16 +09:30
Jon
579e44f834 fix(access): add a team user permissions to use team organization
use the parent models organization for permissions to work

!21 fixes #51
2024-06-08 02:20:17 +09:30
Jon
95a08b2d2c refactor: adjust template block names
renamed so they make sense

!20
2024-06-07 20:01:56 +09:30
Jon
569455c127 test(access): view permission check for team
!18 #48 #15
2024-06-05 23:45:43 +09:30