Commit Graph

103 Commits

Author SHA1 Message Date
62cc5713f7 Add an approved flag to the organisation members map table (pending "join organisation" workflow) 2022-02-15 16:26:06 +00:00
a02b4b52a0 Added foreign key to registrant_id 2022-02-15 15:50:01 +00:00
abe208bc50 Fixed nulled organisation name 2022-02-15 15:49:47 +00:00
d31bdd9970 Fixed backwards logic of cancellation requests 2022-02-15 15:47:01 +00:00
cd8a16f4a8 Revamped the organisation approvals process & refactored some files 2022-02-15 15:26:56 +00:00
e029728d69 Allow reverting a completed token to an un-complete state (undo "deny" scenario) 2022-02-15 14:56:45 +00:00
6cb5d759b4 Fixed the flag_approved down migration 2022-02-15 12:53:50 +00:00
091febf255 Created an implementation of a token repository that isn't restricted to users and can be re-used for other objects. 2022-02-15 12:53:31 +00:00
f4fba338c5 When restoring an organisation that was rejected, revert the approval request as well 2022-02-11 13:38:24 +00:00
016f7489c4 Change language from Reject to Deny 2022-02-11 13:37:55 +00:00
cd947ba161 Jiggled the config file a little bit 2022-02-11 11:17:59 +00:00
253d77668b Refactored organisation approval class to a base model which will soon be included in a membership approval class 2022-02-11 11:17:05 +00:00
ea0999b1fa Fixed incorrect table name in migration 2022-02-11 10:56:37 +00:00
c6c69b773b Fix twig functions (master overrides permission) 2022-02-10 18:14:54 +00:00
575aa68bca Tighten some more permissions down 2022-02-10 18:11:42 +00:00
909b6a93dc Tighten some edit permissions on organisations 2022-02-10 17:54:56 +00:00
d00694f9cb Hide slug from non-admin editers 2022-02-10 17:54:36 +00:00
4d57f6d33e Allow non-admin users to see the organisations list (required for easier "Join" and "Register" requests). Filter the list to approved or memberOf organisations only. 2022-02-10 17:19:47 +00:00
c3e7c24e6d Add a scope to the organisation model to include if the currentUser is a member or admin of which organisations (null indicates not a member nor an admin) 2022-02-10 17:18:06 +00:00
f2c6677dc1 Order the user model's organisations alphabetically by default (this may break any other orderBy's) 2022-02-10 17:17:04 +00:00
97300ab8a5 Optimised Organisation model to prevent it running 4 extra queries per instance 2022-02-10 16:45:10 +00:00
57dfed304f Added functionality to permenently delete or restore deleted organisations 2022-02-10 15:52:57 +00:00
c3cf97ea50 Re-jigged some of the registration routes and modified the buttons/links to use them 2022-02-10 14:52:48 +00:00
7c319873b1 Add activity log messages for organisation approval workflow 2022-02-10 14:45:07 +00:00
b64b4d72f9 Organisation registration process implemented with configurable approval workflow 2022-02-10 13:00:51 +00:00
fade1f8441 Created some twig extensions for checking membership using the new authorization manager callbacks 2022-02-10 12:56:18 +00:00
99add37bdd Replace the base authorization manager with an extended one with a runCallback method 2022-02-10 12:55:23 +00:00
6570f2fb27 Added an approved flag to organisations with a status column as an indicator, pending registration/approval workflow 2022-02-10 12:51:29 +00:00
a42b04f518 Fixed organisation sprunje name 2022-02-10 12:33:49 +00:00
ca4eb434ad Added missing dependencies to the OrgMembers migration 2022-02-10 12:31:03 +00:00
9d84dcec67 Fixed users being duplicated if they already existed in a target group during a merge 2022-02-10 10:30:31 +00:00
711968df08 Allow members to leave organisations 2022-02-09 12:34:30 +00:00
2b25f390d7 Hard delete merged organisations 2022-02-09 11:02:22 +00:00
27eb4ef754 Fix multiple rows per user appearing when using filters/sorts 2022-02-08 18:10:37 +00:00
9d62749914 Provide ability for admins to manage user organisation membership & admin rights
- Required overwriting a bunch of base code to slot in the handling
- Admins are shown with yellow text in their organisation label
2022-02-08 18:10:20 +00:00
b3c51527a0 Allow users to see their own organisation pages 2022-02-08 16:13:43 +00:00
2d701760c3 Added permission for organisations admin to see individual organisations pages 2022-02-08 09:48:23 +00:00
8b2089fede Updated viewable and editable organisation fields 2022-02-08 09:47:43 +00:00
9345bed087 Fixed missing apostrophe in seed condition 2022-02-08 09:43:50 +00:00
76442dbd4c Fixed organisation permission seeds & added an organisations admin role 2022-02-08 09:36:06 +00:00
4bd115ba4d Fixed merge_organisations permission check 2022-02-08 09:34:26 +00:00
19afb760a1 Fix handling of existing organisation name/slug clashes 2022-02-08 09:34:09 +00:00
7353801ca9 Organisations are now soft-deleted 2022-02-08 09:33:40 +00:00
28255e315a Added capability to merge organisations
- Added an interface for organisation
- Added beforeDelete and beforeMerge callbacks
- Added hard/soft delete to organisations
2022-02-07 16:20:30 +00:00
b6edcf03e8 Update the member count column to exclude admins rather than include 2022-02-07 15:21:50 +00:00
ae0c884e44 Split organisation member management out of the organisation controller into a sub-controller 2022-02-07 12:04:10 +00:00
feaf3d5813 Added organisation information page 2022-02-07 11:23:32 +00:00
1edd850170 Added organisation members table & associated table column data 2022-02-04 13:58:44 +00:00
830a1b49a8 Update organisation functionality 2022-02-04 12:36:47 +00:00
2cf2777494 Delete organisation functionality 2022-02-04 11:42:43 +00:00