chore: Serialize domain policies on team (#1970)
* domain policies exposed on team, consistency * fix: Remove usage of isAdmin in frontend * test
This commit is contained in:
@ -76,7 +76,7 @@ router.post("groups.create", auth(), async (ctx) => {
|
||||
|
||||
const user = ctx.state.user;
|
||||
|
||||
authorize(user, "create", Group);
|
||||
authorize(user, "createGroup", user.team);
|
||||
let group = await Group.create({
|
||||
name,
|
||||
teamId: user.teamId,
|
||||
|
Reference in New Issue
Block a user