0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
if (((HttpContext.Current.Profile as ProfileCommon).Role == "3") || ((HttpContext.Current.Profile as ProfileCommon).Role == "4"))
{
if (e.Item.Value == " Add New Trainee ")
e.Item.Enabled = false;
if (e.Item.Value == " Add New Group ")
e.Item.Enabled = false;
if (e.Item.Value == " Audit Log ")
e.Item.Enabled = false;
if (e.Item.Value == " Manage Holidays ")
e.Item.Enabled = false;
}
if ( (( HttpContext.Current.Profile as ProfileCommon).Role != "0") && (( HttpContext.Current.Profile as ProfileCommon).Role != "") )
{
if (e.Item.Value == " Manage Users ")
e.Item.Enabled = false;
if (e.Item.Value == " Manage Courses ")
e.Item.Enabled = false;
if (e.Item.Value == " Audit Log ")
e.Item.Enabled = false;
}
if (((HttpContext.Current.Profile as ProfileCommon).Role == "") ||
((HttpContext.Current.Profile as ProfileCommon).Role == "0") ||
((HttpContext.Current.Profile as ProfileCommon).Role == "1") ||
((HttpContext.Current.Profile as ProfileCommon).Role == "2"))
{
if (e.Item.Value == " Holidays ")
e.Item.Enabled = false;
}
Новое место работы. Новые порции говнокода.
Это классика - no comments...
Запостил:
guest ,
02.04.2009 (Updated 24.03.2018 )
УГ
Пиздец какой-то =\