Removed Unneccesary if check

This commit is contained in:
Zeegaan
2021-08-13 10:51:50 +02:00
parent dfa76af4d6
commit 683170b04e

View File

@@ -39,11 +39,6 @@ namespace Umbraco.Cms.Web.Common.Security
var username = currentMember.UserName;
IList<string> userRoles = await memberManager.GetRolesAsync(currentMember);
if (userRoles.Count == 0)
{
return PublicAccessStatus.AccessDenied;
}
if (!currentMember.IsApproved)
{
return PublicAccessStatus.NotApproved;