禁用的 Umbraco 用户仍然出现在后端
Disabled Umbraco users still appearing in backend
我明白你不能从真正意义上的 Umbraco 中删除用户,因为 SQL 数据库中的引用完整性应该有任何关联的节点
我有一个数据库,随着时间的推移创建了多个 dev/test 用户,我需要将数据库交付给客户。
如果我禁用一个用户(同时选择 "Disable user" 和 "Disable Umbraco Access"),我怎样才能阻止他们出现在后端的用户列表中?我不介意它们在数据库中保持休眠状态,但不希望客户端(将以管理员身份登录)看到它们
您可以更新 ~/config/umbracoSettings.config
文件中的设置。
<security>
<!-- change in 4.8: Disabled users are now showed dimmed and last in the tree. If you prefer not to display them set this to true -->
<hideDisabledUsersInBackoffice>true</hideDisabledUsersInBackoffice>
</security>
This setting was introduced in v4.8. If it's set to true it's not
possible to see disabled users, which means it's not possible to
re-enable their access to the back office again. It also means you
can't create an identical username if the user was disabled by a
mistake.
来源:https://our.umbraco.org/documentation/reference/config/umbracosettings/#security
我明白你不能从真正意义上的 Umbraco 中删除用户,因为 SQL 数据库中的引用完整性应该有任何关联的节点
我有一个数据库,随着时间的推移创建了多个 dev/test 用户,我需要将数据库交付给客户。
如果我禁用一个用户(同时选择 "Disable user" 和 "Disable Umbraco Access"),我怎样才能阻止他们出现在后端的用户列表中?我不介意它们在数据库中保持休眠状态,但不希望客户端(将以管理员身份登录)看到它们
您可以更新 ~/config/umbracoSettings.config
文件中的设置。
<security>
<!-- change in 4.8: Disabled users are now showed dimmed and last in the tree. If you prefer not to display them set this to true -->
<hideDisabledUsersInBackoffice>true</hideDisabledUsersInBackoffice>
</security>
This setting was introduced in v4.8. If it's set to true it's not possible to see disabled users, which means it's not possible to re-enable their access to the back office again. It also means you can't create an identical username if the user was disabled by a mistake.
来源:https://our.umbraco.org/documentation/reference/config/umbracosettings/#security