|
@@ -621,6 +621,9 @@ module.exports = app => {
|
|
|
if (!projectData) {
|
|
|
throw '没有对应的项目数据';
|
|
|
}
|
|
|
+ if (ctx.session.sessionUser.is_admin === 0) {
|
|
|
+ throw '没有访问权限';
|
|
|
+ }
|
|
|
const showList = await ctx.service.settingShow.getList(projectData.page_path);
|
|
|
const renderData = { projectData, showList };
|
|
|
await this.layout('setting/show.ejs', renderData);
|
|
@@ -658,6 +661,9 @@ module.exports = app => {
|
|
|
if (projectData === null) {
|
|
|
throw '没有对应的项目数据';
|
|
|
}
|
|
|
+ if (ctx.session.sessionUser.is_admin === 0) {
|
|
|
+ throw '没有访问权限';
|
|
|
+ }
|
|
|
const settingType = ctx.params.type ? parseInt(ctx.params.type) : 0;
|
|
|
const logs = await ctx.service.projectLog.getLogs(projectId, settingType);
|
|
|
const renderData = {
|