sync
This commit is contained in:
@ -168,7 +168,7 @@ namespace IronIntel.Contractor.Site.Security
|
||||
UserInfo[] items = null;
|
||||
if (GetCurrentLoginSession() != null)
|
||||
{
|
||||
items = UserManagement.GetUsers();
|
||||
items = UserManagement.GetUsers(string.Empty, string.Empty, GetLanguageCookie());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -191,7 +191,7 @@ namespace IronIntel.Contractor.Site.Security
|
||||
if (session != null)
|
||||
{
|
||||
//contact = ContactManagement.GetContacts();
|
||||
users = UserManagement.GetActiveUsers(session.SessionID);
|
||||
users = UserManagement.GetActiveUsers(GetLanguageCookie(),session.SessionID);
|
||||
users = users.OrderBy(u => u.DisplayName).ToArray();
|
||||
}
|
||||
else
|
||||
|
@ -48,7 +48,7 @@ namespace IronIntel.Contractor.Site.Security
|
||||
list.Remove(item);
|
||||
}
|
||||
|
||||
if (user.UserType != UserTypes.SupperAdmin)
|
||||
if (user.UserType != UserTypes.SupperAdmin || IronIntel.Contractor.SystemParams.IsDealer)
|
||||
{
|
||||
SecurityNavigateItem item = list.FirstOrDefault(m => m.ID == "nav_curfewmt");
|
||||
if (item != null)
|
||||
|
@ -92,7 +92,7 @@ namespace IronIntel.Contractor.Site.Security
|
||||
// 返回带 Users 数据的详细用户组对象
|
||||
group = UserManagement.GetGroup(guid.ToString());
|
||||
}
|
||||
var users = UserManagement.GetUsers().OrderBy(u => u.ID).ToArray();
|
||||
var users = UserManagement.GetUsers(string.Empty, string.Empty, GetLanguageCookie()).OrderBy(u => u.ID).ToArray();
|
||||
|
||||
return new GroupDetail
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ namespace IronIntel.Contractor.Site.Security
|
||||
private void GetUsers()
|
||||
{
|
||||
string json = "";
|
||||
var users = UserManagement.GetUnmanagementUsers().OrderBy(u => u.DisplayName).ToArray();
|
||||
var users = UserManagement.GetUnmanagementUsers(GetLanguageCookie()).OrderBy(u => u.DisplayName).ToArray();
|
||||
json = JsonConvert.SerializeObject(users);
|
||||
Response.Write(json);
|
||||
Response.End();
|
||||
|
Reference in New Issue
Block a user