我想向授权和未经授权的用户显示不同的菜单。以下是公共访问的代码片段:
if not request.user.is_authenticated():
(menu_c,menu_t) = mn_view.rightMenuPublic(request)
print "public"
#only for authenticated user:
else:
(menu_c,menu_t) = mn_view.rightMenuRestricted(request)
print "private"
但只有公共菜单是我得到的