修改BUG,Administrators角色的人新增菜单后无法看到

This commit is contained in:
Argo-Lenovo 2016-11-10 14:05:12 +08:00
parent 7f6f9ab863
commit e51ea2c04d
1 changed files with 8 additions and 1 deletions

View File

@ -144,6 +144,13 @@ BEGIN
inner join RoleGroup rg on rg.GroupID = ug.GroupID
inner join NavigationRole nr on nr.RoleID = rg.RoleID
where u.UserName = @userName
union
select n.ID from Navigations n
where EXISTS (select UserName from Users u
inner join UserRole ur on u.ID = ur.UserID
inner join Roles r on ur.RoleID = r.ID
where u.UserName = @userName and r.RoleName = N'Administrators'
)
) nav on n.ID = nav.NavigationID
END
GO