Improve user role management on members (#6775)
This commit is contained in:
@@ -168,17 +168,6 @@ router.post(
|
||||
}
|
||||
);
|
||||
|
||||
router.post("users.count", auth(), async (ctx: APIContext) => {
|
||||
const { user } = ctx.state.auth;
|
||||
const counts = await User.getCounts(user.teamId);
|
||||
|
||||
ctx.body = {
|
||||
data: {
|
||||
counts,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
router.post(
|
||||
"users.info",
|
||||
auth(),
|
||||
|
||||
Reference in New Issue
Block a user