修正角色权限加载时,如果权限项目模板文件新增了项目,但旧的Account.xml中没有关于新增项目的权限配置,获取权限时默认赋予WR权限,但Role配置界面中仍然显示为NONE,导致实际情况和配置不匹配的问题。现上述情况默认为无权限。

[UI.Client]
Role配置视图的“Page Access Permission”卡片标题增加“Restart Needed”字样,表示该处更改需要重启生效。
This commit is contained in:
SL 2023-07-05 10:57:11 +08:00
parent 8f41b72d85
commit 26927ee05a
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ namespace MECF.Framework.Common.Account.Extends
} }
} }
} }
return 3; return 1; //MP_NONE
} }
public List<AppMenu> GetMenusByRole(string roleid, List<AppMenu> menulist) public List<AppMenu> GetMenusByRole(string roleid, List<AppMenu> menulist)

View File

@ -318,7 +318,7 @@
<TabControl Grid.Row="2"> <TabControl Grid.Row="2">
<TabItem> <TabItem>
<TabItem.Header> <TabItem.Header>
<TextBlock FontWeight="Bold" Text="Page Access Permission" /> <TextBlock FontWeight="Bold" Text="Page Access Permission (Restart Needed)" />
</TabItem.Header> </TabItem.Header>
<ListView <ListView
Name="RolesList" Name="RolesList"