small fixes

This commit is contained in:
Pavel Vesely
2020-06-12 17:44:02 +02:00
parent 4edb3f32f0
commit 8053cc0af6
3 changed files with 16 additions and 9 deletions

View File

@ -75,7 +75,7 @@ namespace Oqtane.Controllers
private User Filter(User user)
{
if (user != null && !User.IsInRole(Constants.AdminRole) && User.Identity.Name != user.Username)
if (user != null && !User.IsInRole(Constants.AdminRole) && User.Identity.Name?.ToLower() != user.Username.ToLower())
{
user.DisplayName = "";
user.Email = "";