private bool HasPermission(string permissionName) { var permission = _permissionDefinitionManager.GetPermissionOrNull(permissionName); if (permission == null) { Logger.Warn("Permission is not defined: " + permissionName); return(false); } return(HasPermission(permission)); }