diff --git a/C2P/WebUserControls/mod_S_Quot.ascx b/C2P/WebUserControls/mod_S_Quot.ascx
index 462781f..4b7295d 100644
--- a/C2P/WebUserControls/mod_S_Quot.ascx
+++ b/C2P/WebUserControls/mod_S_Quot.ascx
@@ -18,7 +18,7 @@
-
+
diff --git a/C2P/WebUserControls/mod_S_Quot.ascx.cs b/C2P/WebUserControls/mod_S_Quot.ascx.cs
index 154f309..6e174fa 100644
--- a/C2P/WebUserControls/mod_S_Quot.ascx.cs
+++ b/C2P/WebUserControls/mod_S_Quot.ascx.cs
@@ -82,5 +82,16 @@ namespace C2P.WebUserControls
{
frmView.DataBind();
}
+ ///
+ /// verifica se utente sia admin altrimenti non vede dati...
+ ///
+ public bool userIsAdmin
+ {
+ get
+ {
+ bool answ = SteamWare.user_std.UtSn.userHasRight("SuperUser");
+ return answ;
+ }
+ }
}
}
\ No newline at end of file
diff --git a/C2P/WebUserControls/mod_testata.ascx.cs b/C2P/WebUserControls/mod_testata.ascx.cs
index c914ab2..73e0568 100644
--- a/C2P/WebUserControls/mod_testata.ascx.cs
+++ b/C2P/WebUserControls/mod_testata.ascx.cs
@@ -25,6 +25,12 @@ namespace C2P.WebUserControls
///
protected void Page_Load(object sender, EventArgs e)
{
+ // se l'utente NON c'รจ torno a login...
+ if (!user_std.UtSn.isAuth && Request.Url.LocalPath.Split('/').Last().IndexOf("login") < 0)
+ {
+ Session["nextPage"] = Request.Url.LocalPath.Split('/').Last();
+ Response.Redirect("login");
+ }
if (!Page.IsPostBack)
{
PagCorrente();
diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll
index 4abc0fa..0d07460 100644
Binary files a/C2P/bin/C2P.dll and b/C2P/bin/C2P.dll differ
diff --git a/C2P/bin/C2P_Data.dll b/C2P/bin/C2P_Data.dll
index c545410..45af1d1 100644
Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ
diff --git a/C2P/bin/SteamWare.dll b/C2P/bin/SteamWare.dll
index d4bac5f..bcc39e5 100644
Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ
diff --git a/C2P_Report/bin/C2P_Data.dll b/C2P_Report/bin/C2P_Data.dll
index c545410..45af1d1 100644
Binary files a/C2P_Report/bin/C2P_Data.dll and b/C2P_Report/bin/C2P_Data.dll differ
diff --git a/C2P_Report/bin/C2P_Report.dll b/C2P_Report/bin/C2P_Report.dll
index 45b526d..a7073da 100644
Binary files a/C2P_Report/bin/C2P_Report.dll and b/C2P_Report/bin/C2P_Report.dll differ
diff --git a/C2P_Report/bin/SteamWare.dll b/C2P_Report/bin/SteamWare.dll
index d4bac5f..bcc39e5 100644
Binary files a/C2P_Report/bin/SteamWare.dll and b/C2P_Report/bin/SteamWare.dll differ