Commit Graph

958 Commits (main)

Author SHA1 Message Date
iglocska b01a3bf83e
new: [topology UI] added 2023-10-05 11:05:20 +02:00
Sami Mokaddem 845ba2bfc9
Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop 2023-09-27 10:46:12 +02:00
Sami Mokaddem 0d5dee3524
fix: [component:CRUD] Do not limit results if the limit query parameter is not provided 2023-09-27 10:44:43 +02:00
Luciano Righetti eb95c44528
Merge pull request #151 from righel/fix-test-action
fix: fix test workflow action
2023-09-14 16:16:55 +02:00
Sami Mokaddem 672847b214
chg: [users:acl] Improved waterfall model for CRUD operation and updated UI to reflect them 2023-09-13 09:15:16 +02:00
iglocska b0ebe774b6
fix: [ACL] group admins can view users in their group 2023-09-13 07:18:29 +02:00
iglocska e03a037511
fix: [internal] fixed the function checking if a user belongs to the current User's managed org group 2023-09-13 07:06:31 +02:00
Sami Mokaddem e64f4c341f
fix: [acl:canEditUser] Typo in table name 2023-09-12 15:01:22 +02:00
Sami Mokaddem b2df8192f7
fix: [OrgGroups:checkIfGroupAdmin] Consider site_admins as group admin 2023-09-12 14:31:03 +02:00
Sami Mokaddem 44527bbcb8
Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop 2023-09-12 14:28:07 +02:00
iglocska 1a20eaace9
fix: [strict typing] Made Sami's frankenstein setup happy 2023-09-12 14:25:16 +02:00
Sami Mokaddem d5d1f0b572
Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop 2023-09-12 14:18:20 +02:00
iglocska 1d9b54348a
fix: [temp] ACL function built up 2023-09-12 14:17:11 +02:00
Sami Mokaddem d2cb072ce6
chg: [ui] Improved reflection of ACL logic in the UI for OrgGroups, Organisations and individuals. 2023-09-12 14:11:15 +02:00
iglocska 4d58b94d58
chg: [VERSION] bump 2023-09-12 11:09:21 +02:00
iglocska c124ebc0d8
fix: [ACL] fixes 2023-09-12 11:08:46 +02:00
iglocska e3f8c38dcd
fix: [org admins] should be able to edit the org 2023-09-12 10:54:06 +02:00
iglocska 69b653dd59
Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop 2023-09-12 09:27:57 +02:00
iglocska 16a4a1cde5
new: [org Groups] added
- Org Groups allow user co-management of sub communities
  - Create an org group with a set of organisations
  - assign administrators to an org group
  - org group admins can modify users of the group
2023-09-12 09:26:07 +02:00
Sami Mokaddem 8b4b47775c
chg: [alignments:acl] Reflected ACL logic from individuals to alignments 2023-09-08 09:11:52 +02:00
Sami Mokaddem 367012af36
fix: [individual:edit] Select individuals based on their id and not their user_id 2023-09-07 16:43:30 +02:00
Sami Mokaddem 5aefc37837
chg: [users:edit] Allow users to self edit 2023-09-07 16:11:47 +02:00
Sami Mokaddem 08d2e193dd
chg: [user-settings:edit] Prevent assigning a setting to another user 2023-09-07 15:14:26 +02:00
Sami Mokaddem d46143a37f
chg: [command:summary] Added data about the modified entity 2023-09-07 15:01:13 +02:00
Sami Mokaddem 01356824a2
chg: [navigation:tags] Updated UI to reflect users' permissions 2023-09-06 10:42:08 +02:00
Sami Mokaddem bde01882d9
fix: [navigation:CRUDAction-auditlogs] Make ordering by created field unambigous and hide audit button to non-admin users 2023-09-06 10:17:06 +02:00
Sami Mokaddem 7377e77204
chg: [navigation:individuals] Only show edit and deletion buttons if users are allowed to do it 2023-09-06 09:48:16 +02:00
Sami Mokaddem e7e5c0aebd
chg: [ACL:tags] Relaxed ACL on tags for index and view pages.
FIXME: Adapt changes in the UI to hide add/edit buttons and add link to the sidebar
2023-09-05 10:56:48 +02:00
Sami Mokaddem 9e18f4f0bb
chg: [ACL:individual/add] Allow `org-admin`s to create new individuals 2023-09-05 10:49:23 +02:00
Sami Mokaddem 883f0eb44a
fix: [userSettings:add] Aded check to avoid duplicated setting for the same user 2023-09-05 10:46:25 +02:00
Sami Mokaddem a3c23f46d5
fix: [mailinglist:ACL] Fixed bug in ACL check for access 2023-09-05 10:33:08 +02:00
iglocska 012e120db2
chg: [version] bump 2023-09-04 15:25:04 +02:00
iglocska 3e5ae5271e
chg: [misisng] change 2023-09-04 15:23:21 +02:00
iglocska 78152a884a
Merge branch 'main' into develop 2023-09-04 15:22:42 +02:00
Sami Mokaddem 26cbaf0129
chg: [command:summary] Consider perm meta-fields addition/deletion as uesr edit 2023-09-04 14:43:53 +02:00
Sami Mokaddem 279c69c510
fix: [userSettings:edit] Correctly pre-select user to be edited 2023-09-04 09:34:44 +02:00
Sami Mokaddem 1ea7c796ac
chg: [component:CRUD] Include meta-fields in REST queries and clever pagination support for REST queries 2023-08-29 14:57:48 +02:00
Sami Mokaddem 633ae86886
chg: [command:summary] Added support of user MetaFields
Allow to show addition and deletion of user metafields such as the ones used for permissions
2023-08-29 14:53:03 +02:00
iglocska 8e616180ba
fix: [security] user settings editable by arbitrary user fixed
- as reported by Infigo on behalf of ENISA
2023-08-23 15:08:23 +02:00
iglocska d7bf8af5b1
fix: [internal] user add fix attempt #2 2023-06-28 15:01:26 +02:00
iglocska 82bf3a74c1
chg: [internal] fetch first role if no default is set 2023-06-28 14:59:31 +02:00
iglocska 5028b4cf24
chg: [version] bump 2023-05-31 09:42:15 +02:00
iglocska 52e8a5c6a6
new: [enumerations] added enumerations system
- for string entry fields, simply add lists of values to convert the text entry for values
- helps with maintaining accurate lists
- currently the fields that are valid targets are organisations.nationality, organisations.sector, organisations.type
2023-05-26 16:13:52 +02:00
iglocska 41749ae5a8
fix: [users] added the country information to the index / view 2023-05-25 16:22:49 +02:00
iglocska 7a8eb6ba50
chg: [CRUD] allow for sorting on related model fields
- some hacks to resolve issues with sorting on related fields
2023-05-25 16:11:21 +02:00
Luciano Righetti 9b7c693bb9 fix: fix some deprecation notices in 8.2 2023-04-06 17:59:22 +02:00
Sami Mokaddem abd5dab605
chg: [command:importer] Make sure to use the latest known version of the template 2023-03-31 13:56:06 +02:00
Sami Mokaddem 5f1c99cd53
fix: [security] blind SQL injection in searchAll
- As reported by Zigrin Security
2023-03-25 09:23:45 +01:00
Sami Mokaddem 16a50c08a3
fix: [helper:formFieldMassage] Correctly check for key to avoid debug output 2023-03-21 09:52:28 +01:00
iglocska 61027e9c1e
chg: [version] bump 2023-03-13 15:50:00 +01:00
Sami Mokaddem c2e9fd3b75
chg: [meta-template:index] Added link to metaTemplateNameDirectory 2023-03-13 11:38:32 +01:00
Sami Mokaddem 47bebe5b68
chg: [metaTemplate:update] Gracefully handle case when template on disk is not readable 2023-03-13 11:37:58 +01:00
Sami Mokaddem acb66ac4a0
fix: [individuals:delete] Gracefully catches deletion of individuals associated to a user 2023-03-13 08:05:32 +01:00
Sami Mokaddem 3ca6b68429
fix: [acl:metaTemplate] Added missing entry 2023-02-27 12:17:04 +01:00
Sami Mokaddem 6fc568e80e
new: [metaTemplateNameDirectory] Added index to see the known template and their associated saved meta-templates 2023-02-27 12:16:36 +01:00
Sami Mokaddem ce8a7ba1be
fix: [individuals:canEdit] Changed function from public to private 2023-02-27 12:14:13 +01:00
Sami Mokaddem c8e5823393
chg: [helper:bootstrap] Make sure to output the value even if it's a `0` 2023-02-27 11:13:40 +01:00
Sami Mokaddem 26c038b25b
chg: [settings:cerebrate] Improved check before saving debug level 2023-02-27 11:12:54 +01:00
Sami Mokaddem 480e4a65fe
fix: [elements:bootstrapTabs] Removed unused options 2023-02-27 10:43:59 +01:00
Sami Mokaddem 59f8608d50
new: [user:permissionLimitation] Added current permission status while in `add` or `edit` context
Also moved the notification key from meta-fields to meta-template-fields
2023-02-24 15:22:18 +01:00
Sami Mokaddem aead79a4c3
chg: [component:CRUD] Added `afterFind` support in add 2023-02-24 15:20:29 +01:00
Sami Mokaddem a427686388
chg: [user:permissionRestriction] Move check from beforeSave to ApplicationRule 2023-02-24 15:02:08 +01:00
Sami Mokaddem fda8aa5866
chg: [component:CRUD] Include meta-template before calling `afterFind` 2023-02-24 14:57:40 +01:00
Sami Mokaddem 0833a8c0e4
fix: [individual:getValidToEdit] Restricted ACL to prevent one org_admin to edit another from the same org 2023-02-24 11:18:48 +01:00
Sami Mokaddem af8f1e9e74
chg: [tags:org/individual] Relaxed ACL on tagging
- Before only `site_admin` could add tags.
- Now `org_admins` can add tags for their orgs and individuals
- Regular users can self manage their own individual tag
2023-02-24 11:17:55 +01:00
Sami Mokaddem c148b0993a
chg: [encryptionKeys:beforeSave] Updated ACL to disable management of keys for regular orgs 2023-02-24 10:35:25 +01:00
Sami Mokaddem 1620fd3e59
chg: [encryptionKey] Made key searchable with substring strategy 2023-02-24 10:31:33 +01:00
Sami Mokaddem 73c4baac31
chg: [helper:bootstrap] Added support of ID option 2023-02-24 10:04:18 +01:00
Sami Mokaddem 6eb5106153
new: [ui:formInfo] Rafactored formInfo and added support of field description
Can be done by using the `tooltip` key on the field configuration
2023-02-24 10:03:45 +01:00
Sami Mokaddem 487670e522
chg: [authkeys:add] Select logged-in user by default 2023-02-23 14:57:58 +01:00
Sami Mokaddem 7ccf925247
security: [authkey:add] Restrict creation of API keys for users in the same org and for other org_admins 2023-02-23 14:57:42 +01:00
Sami Mokaddem e9056a7b4c
chg: [audit:filter] Made request_action a multiple search 2023-02-23 13:04:33 +01:00
Sami Mokaddem 4d4642770f
new: [crud:filter] Added support of IN searches using dropdown 2023-02-23 12:55:18 +01:00
Sami Mokaddem fdd876b1b2
new: [component:CRUD] Added support of IN condition when filtering index 2023-02-23 11:40:07 +01:00
Sami Mokaddem 9bc1ba899f
Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop 2023-02-21 13:54:22 +01:00
Sami Mokaddem 0b2f7c31b2
Merge branch 'develop-unstable' into develop 2023-02-21 13:54:13 +01:00
iglocska ce42bd7726
chg: [version] bump 2023-02-21 13:50:30 +01:00
iglocska 0ba6310434
Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop 2023-02-21 13:49:55 +01:00
Sami Mokaddem e375e24a6d
chg: [component:CRUD] Added validation of order fields 2023-02-20 10:17:20 +01:00
Sami Mokaddem e4c132374e
fix: [crud:renderInVariable] Fixed deprecation notice 2023-02-16 15:13:52 +01:00
Sami Mokaddem 0850c92e89
chg: [users:index] Added setting to allow the deletion of users
Fix #119
2023-02-16 15:07:06 +01:00
Sami Mokaddem 88abecfe8f
fix: [sharingGroups:addOrg] Use correct index to add to the group 2023-02-16 14:55:43 +01:00
Sami Mokaddem 62b2a1b264
new: [crud:auditlog] Added auditlogs for entity being viewed 2023-02-16 14:52:05 +01:00
Sami Mokaddem adad45baf6
chg: [metaTemplate:updateStrategyDelete] Restored strategy to update a template and delete conflicting metafields 2023-02-16 13:51:36 +01:00
Sami Mokaddem 97a151aff5
new: [metaTemplate:metaFieldMigration] Added support of force migrate
Remove conflicting meta-fields and migrate non-conflicting ones
2023-02-16 13:35:38 +01:00
Sami Mokaddem 27673b54c9
chg: [metaTemplate:migrateMetaField] Ignore metafield with empty value 2023-02-16 09:32:27 +01:00
Sami Mokaddem 20eebd097d
new: [meta-template] Improvement of the update system
- Changed default update strategy from `create_new` to `update_existing`
- Added mechanism to automatically migrate meta-fields to newest template
- Improved validation and conflict detection strategies
- Fixed various UI bugs and improved QoL
2023-02-14 14:42:35 +01:00
Sami Mokaddem c0636b89ab
fix: [bootstrap:table] Fixed typo and pass field config for indexed arrays 2023-02-14 10:31:23 +01:00
Sami Mokaddem d4ad5f2fb3
chg: [bootstrap:collapse] Allow disabling card formating 2023-02-14 10:30:46 +01:00
Sami Mokaddem 3fcb58c081
chg: [brood:queryIndex] Added support of pagination and filtering 2023-02-13 15:39:25 +01:00
Sami Mokaddem b9292473de
fix: [crud:index] Only include requested metafields for non-API queries 2023-02-13 15:38:12 +01:00
Sami Mokaddem fce564f798
chg: [crud:index] Added better support of pagination for API 2023-02-13 15:36:21 +01:00
Sami Mokaddem 72932c582d
chg: [users:index] Includes metafields by default when API query 2023-02-13 15:32:40 +01:00
Sami Mokaddem d7a530924f
fix: [navigation:metaTemplates] Allow toggling template enabled state 2023-02-13 15:32:00 +01:00
Sami Mokaddem 9013a7ce2b
chg: [boostrapElement:dropdownMenu] Added support of `attrs` parameter for menu entry 2023-02-13 15:18:07 +01:00
Sami Mokaddem aa9225ba90
fix: [metaFields] Fixed typo in function 2023-02-13 15:16:10 +01:00
Sami Mokaddem 0ac81af82a
fix: [metaTemplateDirectory:create] Added gracefully handle uniqueness 2023-02-13 15:14:43 +01:00
Sami Mokaddem 25e63b710a
fix: [user:rearrangeForAPI] Fixed support of metafields 2023-02-13 15:13:33 +01:00
Sami Mokaddem 2915ced971
chg: [organisations:index] Always include metafields for API requests 2023-02-13 15:12:54 +01:00
Sami Mokaddem f1de7fbf49
chg: [broods:testConnection] Prematurely close session to allow concurrent requests 2023-02-13 15:08:57 +01:00