Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhangjian1949
apollo
提交
c9089e4c
apollo
项目概览
zhangjian1949
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c9089e4c
编写于
10月 19, 2019
作者:
J
Jason Song
提交者:
kezhenxu94
10月 19, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
minor fix i18n translations (#2675)
上级
73cf7fef
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
4 deletion
+3
-4
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ItemController.java
...ip/framework/apollo/portal/controller/ItemController.java
+2
-2
apollo-portal/src/main/resources/static/config/sync.html
apollo-portal/src/main/resources/static/config/sync.html
+1
-2
未找到文件。
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ItemController.java
浏览文件 @
c9089e4c
...
...
@@ -164,7 +164,7 @@ public class ItemController {
if
(
permissionValidator
.
shouldHideConfigToCurrentUser
(
namespace
.
getAppId
(),
namespace
.
getEnv
().
name
(),
namespace
.
getNamespaceName
()))
{
diff
.
setDiffs
(
new
ItemChangeSets
());
diff
.
setExtInfo
(
"
您不是该项目的管理员,也没有该Namespace在 "
+
namespace
.
getEnv
()
+
" 环境的编辑或发布权限"
);
diff
.
setExtInfo
(
"
You are not this project's administrator, nor you have edit or release permission for the namespace in environment: "
+
namespace
.
getEnv
()
);
}
}
...
...
@@ -195,7 +195,7 @@ public class ItemController {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
build
();
}
else
throw
new
AccessDeniedException
(
String
.
format
(
"
您没有修改环境%s的权限
"
,
envNoPermission
));
throw
new
AccessDeniedException
(
String
.
format
(
"
You don't have the permission to modify environment: %s
"
,
envNoPermission
));
}
@PreAuthorize
(
value
=
"@permissionValidator.hasModifyNamespacePermission(#appId, #namespaceName, #env)"
)
...
...
apollo-portal/src/main/resources/static/config/sync.html
浏览文件 @
c9089e4c
...
...
@@ -149,8 +149,7 @@
ng-show=
"clusterDiff.diffs.createItems.length + clusterDiff.diffs.updateItems.length == 0 || clusterDiff.extInfo"
>
<span
ng-show=
"clusterDiff.diffs.createItems.length + clusterDiff.diffs.updateItems.length == 0 && !clusterDiff.extInfo"
>
{{'Config.Sync.NoNeedSyncItem' | translate }}
</span>
<span
ng-show=
"clusterDiff.extInfo"
ng-bind=
"clusterDiff.extInfo"
></span>
,{{'Config.Sync.IgnoreSync' | translate }}
<span
ng-show=
"clusterDiff.extInfo"
ng-bind=
"clusterDiff.extInfo"
></span>
, {{'Config.Sync.IgnoreSync' | translate }}
</div>
<div
class=
"row"
style=
"margin-top: 10px;"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录