mirror of
https://github.com/certd/certd.git
synced 2026-07-25 13:17:36 +08:00
feat: 支持企业级管理模式,项目管理,细分权限
This commit is contained in:
@@ -38,7 +38,11 @@ export class SysProjectController extends CrudController<ProjectEntity> {
|
||||
};
|
||||
merge(bean, def);
|
||||
bean.userId = this.getUserId();
|
||||
return super.add(bean);
|
||||
return super.add({
|
||||
...bean,
|
||||
userId:0,
|
||||
adminId: bean.userId,
|
||||
});
|
||||
}
|
||||
|
||||
@Post("/update", { summary: "sys:settings:edit" })
|
||||
|
||||
Reference in New Issue
Block a user