fix isPermissionIDExistedFunc
This commit is contained in:
parent
e8547dfcda
commit
73ef7d69db
|
@ -114,7 +114,7 @@ func countByCondition(ctx context.Context, cond interface{}) int64 {
|
||||||
|
|
||||||
func isPermissionIDExisted(ctx context.Context, permissionID primitive.ObjectID) bool {
|
func isPermissionIDExisted(ctx context.Context, permissionID primitive.ObjectID) bool {
|
||||||
var (
|
var (
|
||||||
col = database.GetRoleCol()
|
col = database.GetPermissionCol()
|
||||||
)
|
)
|
||||||
// Find
|
// Find
|
||||||
cond := bson.M{
|
cond := bson.M{
|
||||||
|
|
Loading…
Reference in New Issue