|
@@ -865,9 +865,10 @@ namespace MySystem
|
|
|
{
|
|
|
int level = 0;
|
|
|
Users orderuser = db.Users.FirstOrDefault(m => m.Id == UserId) ?? new Users();
|
|
|
- if(!string.IsNullOrEmpty(orderuser.ParentNav))
|
|
|
+ string ParentNav = orderuser.ParentNav + "," + UserId + ",";
|
|
|
+ if(!string.IsNullOrEmpty(ParentNav))
|
|
|
{
|
|
|
- string[] ParentNavList = orderuser.ParentNav.Replace(",,", ",").TrimEnd(',').Split(',');
|
|
|
+ string[] ParentNavList = ParentNav.Replace(",,", ",").TrimEnd(',').Split(',');
|
|
|
Array.Reverse(ParentNavList);
|
|
|
foreach(string ParentUserId in ParentNavList)
|
|
|
{
|