orgSettings maps database.Organization fields to the rbac.OrgSettings struct, bridging the database and rbac packages without introducing a circular dependency.
(org database.Organization)
| 336 | // rbac.OrgSettings struct, bridging the database and rbac packages |
| 337 | // without introducing a circular dependency. |
| 338 | func orgSettings(org database.Organization) rbac.OrgSettings { |
| 339 | return rbac.OrgSettings{ |
| 340 | ShareableWorkspaceOwners: rbac.ShareableWorkspaceOwners(org.ShareableWorkspaceOwners), |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | // CreateSystemRole inserts a new system role into the database with |
| 345 | // permissions produced by permsFunc based on the organization's current |
no test coverage detected