Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion registry-public/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: registry-public
version: '4.33.2'
version: '4.33.3'
synopsis: Registry Public
description: Registry Public
category: Web
Expand Down
2 changes: 1 addition & 1 deletion registry-server/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: registry-server
version: '4.33.2'
version: '4.33.3'
synopsis: Engine Registry
description: Engine Registry
category: Web
Expand Down
2 changes: 1 addition & 1 deletion registry-server/src/Registry/Api/Handler/Swagger/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ swagger =
s._swaggerInfo
{ _infoTitle = "Registry API"
, _infoDescription = Just "API specification for Registry"
, _infoVersion = "4.33.2"
, _infoVersion = "4.33.3"
, _infoLicense =
Just $
License
Expand Down
2 changes: 1 addition & 1 deletion shared-common/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: shared-common
version: '4.33.2'
version: '4.33.3'
synopsis: Engine Shared
description: Engine Shared
category: Web
Expand Down
2 changes: 1 addition & 1 deletion wizard-public/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: wizard-public
version: '4.33.2'
version: '4.33.3'
synopsis: Wizard Public
description: Wizard Public
category: Web
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data CreateTenantCommand = CreateTenantCommand
, enabled :: Bool
, customDomain :: Maybe String
, adminRoleUuid :: U.UUID
, adminRolePermissions :: [String]
, limits :: TenantLimitBundleChange
}
deriving (Show, Eq, Generic)
Expand Down
2 changes: 1 addition & 1 deletion wizard-server/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: wizard-server
version: '4.33.2'
version: '4.33.3'
synopsis: Engine Wizard
description: Engine Wizard
category: Web
Expand Down
2 changes: 1 addition & 1 deletion wizard-server/src/Wizard/Api/Handler/Swagger/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ swagger =
s._swaggerInfo
{ _infoTitle = "Wizard API"
, _infoDescription = Just "API specification for Wizard"
, _infoVersion = "4.33.2"
, _infoVersion = "4.33.3"
, _infoLicense =
Just $
License
Expand Down
10 changes: 5 additions & 5 deletions wizard-server/src/Wizard/Service/Tenant/TenantService.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ createTenantByCommand command = do
serverConfig <- asks serverConfig
let tenant = fromCreateCommand command NotSeededTenantState serverConfig now now
insertTenant tenant
adminRole <- createAdminRoleWithUuid command.adminRoleUuid tenant.uuid now
adminRole <- createAdminRoleWithUuid command.adminRoleUuid tenant.uuid command.adminRolePermissions now
createConfig tenant.uuid adminRole.uuid now
createLimitBundle tenant.uuid now
createLocale tenant.uuid now
Expand Down Expand Up @@ -166,15 +166,15 @@ deleteTenant uuid = do
createAdminRole :: U.UUID -> UTCTime -> AppContextM Role
createAdminRole tenantUuid now = do
uuid <- liftIO generateUuid
createAdminRoleWithUuid uuid tenantUuid now
createAdminRoleWithUuid uuid tenantUuid allRolePermissions now

createAdminRoleWithUuid :: U.UUID -> U.UUID -> UTCTime -> AppContextM Role
createAdminRoleWithUuid uuid tenantUuid now = do
createAdminRoleWithUuid :: U.UUID -> U.UUID -> [String] -> UTCTime -> AppContextM Role
createAdminRoleWithUuid uuid tenantUuid permissions now = do
let role =
Role
{ uuid = uuid
, name = "Admin"
, permissions = allRolePermissions
, permissions = permissions
, isAdmin = True
, tenantUuid = tenantUuid
, createdAt = now
Expand Down
Loading