From b424c73762b194dbc7f25fb1667263e2bbae2632 Mon Sep 17 00:00:00 2001 From: robvde Date: Tue, 25 Sep 2012 14:02:51 +0400 Subject: [PATCH] Fixed: Ensure users are not able to update their subscriber number themselves --- .../WebsitePanel/UserAccountEditDetails.ascx | 2 +- .../WebsitePanel/UserAccountEditDetails.ascx.cs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountEditDetails.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountEditDetails.ascx index b95fece1..e4cf120b 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountEditDetails.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountEditDetails.ascx @@ -41,7 +41,7 @@ - + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountEditDetails.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountEditDetails.ascx.cs index f669dfe6..8c722720 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountEditDetails.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountEditDetails.ascx.cs @@ -43,6 +43,13 @@ namespace WebsitePanel.Portal if (PortalUtils.GetHideDemoCheckbox()) rowDemo.Visible = false; } + + if (PanelSecurity.LoggedUser.Role == UserRole.User) + { + txtSubscriberNumber.ReadOnly = true; + } + + } private void BindUser()