mirror of
https://github.com/certd/certd.git
synced 2026-04-25 05:07:25 +08:00
chore: 商业版放开限制,可以切换为企业模式
This commit is contained in:
@@ -119,11 +119,11 @@ export class SysSettingsService extends BaseService<SysSettingsEntity> {
|
||||
}
|
||||
|
||||
async savePublicSettings(bean: SysPublicSettings) {
|
||||
if (isComm()) {
|
||||
if (bean.adminMode === 'enterprise') {
|
||||
throw new Error("商业版不支持使用企业管理模式")
|
||||
}
|
||||
}
|
||||
// if (isComm()) {
|
||||
// if (bean.adminMode === 'enterprise') {
|
||||
// throw new Error("商业版不支持使用企业管理模式")
|
||||
// }
|
||||
// }
|
||||
|
||||
await this.saveSetting(bean);
|
||||
//让设置生效
|
||||
|
||||
Reference in New Issue
Block a user