dotnetcore / dotnetcore/WTM

Blazor版本菜单权限设置失败

Open
#493 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
4.3k
Forks
896
PR merge metrics
No merged PRs in 30d

Description

步骤:
0.appsettings.json 中的IsQuickDebug = false
1.代码生成一个新的页面‘地址管理’
2.设置用户test
3.设置角色 ‘普通用户’
4.修改‘普通用户'角色权限 为新页面权限
![image](https://user-images.githubusercontent.com/10079943/123827555-4b9be700-d933-11eb-98c1-30c909ca85d4.png)

两个问题:
1.管理员账号无法新建‘地址管理’,提示操作成功和没有该页面的权限,如图
![image](https://user-images.githubusercontent.com/10079943/123828630-468b6780-d934-11eb-8a1a-6939a85990f0.png)

2.test账号无法新建‘地址管理’,提示没有权限,如图
![image](https://user-images.githubusercontent.com/10079943/123828664-4ee3a280-d934-11eb-9e42-4fa7c6547250.png)

**我反复重启程序,以及重新登录账号,都是这个结果。我6.29下午通过官网的项目生成器配置Blazor项目代码并测试运行。不知道和版本有没有关系**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.