Skip to content

Cerebrate 1.2 version released with new ACL helper and many fixes

Compare
Choose a tag to compare
@adulau adulau released this 15 Dec 15:37
· 1003 commits to main since this release
3305730

v1.2 (2021-12-15)

Cerebrate v1.2 released with a host of bugs resolved and some slight modifications to the handling of the user objects.

User objects are now tied to organisations

Prior to this versions, the only way to bind a user to an organisation was via the related individual object. This caused issues with users belonging to multiple or no organisations in practice, both of which are valid for individuals, but make access control difficult.

With the current release, users are now tied to organisations and the access control is restricted accordingly. If the intent is to allow a user to act on behalf of multiple organisations, simply add multiple users to an existing individual, one for each organisation, to achieve the expected result.

Changelog

New

  • [ACL Helper] check access for controller / action pair for given user. [iglocska]

    • accesible everywhere in the UI
  • [ACL component] new functionalities. [iglocska]

    • getRoleAccess now returns either URLs or arrays
    • array format allows for easy checking of controller + action pairs
  • [ACL] getRoleAccess endpoint added. [iglocska]

    • prints all valid URLs for the current user's role

Changes

  • [sharing group index] add button now has the new checkaccess conditions applied. [iglocska]

  • [appcontroller] minor changes. [iglocska]

    • getRoleAccess now returns array format
    • moved setting of view variables behind a rest check, to avoid additional unused actions for API queries
    • current user's role access matrix passed to view via "roleAccess"

Fix

  • [sharing group index] fixed members link. [iglocska]

  • [sharing groups] index members column fixed. [iglocska]

  • [encryptions] fixed adding encryption keys. [iglocska]

  • [ACL] added missing entries. [iglocska]

  • [ACL] fix wildcard controller checks failing. [iglocska]

  • [encryption keys] only show valid options when creating keys as a user. [iglocska]

  • [keycloak] enrollment org_id issues fixed. [iglocska]

  • [user add] form fixes. [iglocska]

  • [forms] added missing password form field. [iglocska]

  • [forms] dropdowns overriding values from request. [iglocska]

Other

  • Merge branch 'develop' into main. [iglocska]

  • Merge branch 'main' into develop. [iglocska]