Merge pull request #12843 from Budibase/feature/count-creator-plan-change
Feature/count creator plan change
This commit is contained in:
commit
ad2da6f55e
|
@ -1 +1 @@
|
||||||
Subproject commit 35032a6aeab96437c64b7892ca0ca585e11a6605
|
Subproject commit 38e7b34a708bcaf6abc677be54b9d74bd8d18ea5
|
|
@ -91,6 +91,9 @@ export async function getSelf(ctx: any) {
|
||||||
id: userId,
|
id: userId,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adjust creators quotas (prevents wrong creators count if user has changed the plan)
|
||||||
|
await groups.adjustGroupCreatorsQuotas()
|
||||||
|
|
||||||
// get the main body of the user
|
// get the main body of the user
|
||||||
const user = await userSdk.db.getUser(userId)
|
const user = await userSdk.db.getUser(userId)
|
||||||
ctx.body = await groups.enrichUserRolesFromGroups(user)
|
ctx.body = await groups.enrichUserRolesFromGroups(user)
|
||||||
|
|
Loading…
Reference in New Issue