Register   Login
     
  Latest Posts  
Select Image Button does not work.
by rtnovak on 1/08/2009 6:37 AM
Lightbox implementation
by max2o on 1/08/2009 6:16 AM
RE: Toolbar links at the top of the articles module
by smcculloch on 1/08/2009 5:52 AM
Toolbar links at the top of the articles module
by wassis on 1/08/2009 5:42 AM
RE: PA Features & Enhancements
by smcculloch on 1/08/2009 4:33 AM
RE: PA Features & Enhancements
by georgelew on 1/08/2009 4:28 AM
RE: Search Wildcard Problem!
by smcculloch on 1/08/2009 4:24 AM
RE: Search Wildcard Problem!
by georgelew on 1/08/2009 4:19 AM
RE: Does anyone have XHTML Compliant PA Template
by georgelew on 1/08/2009 4:11 AM
RE: Help! Cannot use "&" in CustomField.
by georgelew on 1/08/2009 4:01 AM
  Forums  
Subject: ENH: Limited Visibility
Prev Next
You are not authorized to post a reply.

Author Messages
DNN ProfessorUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:744


6/23/2005 9:11 AM  

Scott,

Have you given any thought to the fact that if a host is logged in and performing tasks in file manager, that a non-logged in user can not only see that the host is on file manager but can click the link to file manager? Granted, they will get a login prompt, but you really don't want this user to know that that page even exists.

Is it possible to have WAT show only reference links associated to the current user's security level?


Buck Anderson
DNNprofessor.com
dnnprofessor.com
JustNorth Outdoors
justnorth.com
Jive Media Group LLC
jivemg.com
Peter WarrenUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:77

6/23/2005 4:51 PM  
I agree, you should not be able to see pages beyond your role permits, but you should still be able to see the users, except the host and admin accounts (I don't think anyone should see them at all).  You can show other roles and superuser accounts at 'home'.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12800


6/23/2005 5:34 PM  

I'll be adding functionality to Where Are They? and the Users Online sub-project so you can select which roles to show, e.g. typically you would not show administrators.

I will see if I can also have an option to not show pages a user cannot see, I'll need to check if there any lookups on that however and to see if it affects performance too much..


Scott McCulloch
Site Administrator
Peter WarrenUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:77

6/23/2005 9:57 PM  

What about an XML document like SiteURLs.config which uses regular expressions to match pages to be seen (or contains exceptions to hide).  There may be pages in the same role that you may not want other users to see, like Private Messages, MyProfile or similar.  This file could map the page to any name.

Mike HortonUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:84


7/23/2005 8:57 PM  

Scott wouldn't this work if added to the OnItemBound?

Dim objTab As New DotNetNuke.Entities.Tabs.TabController

Dim objTabInfo As DotNetNuke.Entities.Tabs.TabInfo = objTab.GetTab(objUserLocationInfo.TabID)

If objTabInfo.IsAdminTab Or objTabInfo.IsSuperTab Or Not objTabInfo.IsVisible Then

e.Item.Visible = False

End If

I haven't stress tested it but in some quick testing it seemed to work okay on the Admin/Host items. I haven't worked out tabs set to admin only by the admin/host themselves though.

Mike HortonUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:84


7/23/2005 9:12 PM  

Even better:

If Not DotNetNuke.Security.PortalSecurity.IsInRoles(objTabInfo.AuthorizedRoles) Then

e.Item.Visible = False

End If

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12800


7/24/2005 4:33 AM  
Posted By mikeh on 7/23/2005 9:12:48 PM

Even better:

If Not DotNetNuke.Security.PortalSecurity.IsInRoles(objTabInfo.AuthorizedRoles) Then

e.Item.Visible = False

End If



Yep - I just need to check that it doesn't do a DB lookup.. and make sure the objTabInfo comes from Cache

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > Where Are They > ENH: Limited Visibility



ActiveForums 3.7