Search user work again

This commit is contained in:
Pavel Vesely
2021-12-20 12:57:47 +01:00
parent 1173a29ed5
commit e59ee70f88

View File

@ -89,7 +89,7 @@ else
{
var results = allroles.Where(item => item.Role.Name == RoleNames.Registered || (item.Role.Name == RoleNames.Host && UserSecurity.IsAuthorized(PageState.User, RoleNames.Host)));
if (string.IsNullOrEmpty(_search))
if (!string.IsNullOrEmpty(_search))
{
results = results.Where(item =>
(