@model Neo.LegitimateLicences.OperatingLicenceConsole.VehicleModel @using Neo.Afx.ComponentModel @using Neo.Afx.Security @using Neo.Afx.Mvc @using Neo.LegitimateLicences.Common; @{ var userSecurables = (Profile != null && ((Neo.Afx.Security.UserProfile)Profile).Securables != null) ? ((Neo.Afx.Security.UserProfile)Profile).Securables.ToList() : null; var canUpdate = false; if (SecurityHelper.UserHasRole(((UserProfile)Profile).Roles, Neo.LegitimateLicences.Common.RoleEnum.DataPurification)) { foreach (var e in Model.OperatingLicence.LicenceExceptions) { if (e.Exception == "Not all the vehicle details have been specified") { canUpdate = true; } } } }