fix: relation
This commit is contained in:
parent
e3464c4891
commit
9358cac3f8
3 changed files with 18 additions and 9 deletions
|
|
@ -25,6 +25,7 @@ import {
|
|||
createPermCondition,
|
||||
} from "../services/permission";
|
||||
import { filterStatus } from "../services/prisma";
|
||||
import { notFoundError } from "../utils/error";
|
||||
|
||||
type ProductGroupCreate = {
|
||||
name: string;
|
||||
|
|
@ -56,7 +57,7 @@ function globalAllow(user: RequestWithUser["user"]) {
|
|||
return allowList.some((v) => user.roles?.includes(v));
|
||||
}
|
||||
|
||||
const permissionCond = createPermCondition(globalAllow);
|
||||
const permissionCond = createPermCondition((_) => true);
|
||||
const permissionCheck = createPermCheck(globalAllow);
|
||||
|
||||
@Route("api/v1/product-group")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue