Re: Securing Link/URL Display
From: Dustin Miller [MVP] (dustin-s-p-a-m_at_sharepointexperts.com)
Date: 02/23/04
- Next message: Dustin Miller [MVP]: "Re: Fileserver in stead of Database"
- Previous message: Gregg Smith: "Re: [solution but another problem] Re: error trying to read Web.Config (FileIOPermission)"
- In reply to: Brian Orrell: "Re: Securing Link/URL Display"
- Next in thread: Brian Orrell: "Re: Securing Link/URL Display"
- Reply: Brian Orrell: "Re: Securing Link/URL Display"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Feb 2004 15:13:42 -0600
Build a web part that emits a JavaScript array of the currently logged-in
user's roles, then enumerate that array in JavaScript to selectively set
element.style.display='none;' for the toolbar items you want to hide.
-- Dustin Miller [MVP] SharePoint Experts http://www.sharepointexperts.com SharePoint University http://www.sharepointu.com SharePoint Bootcamp http://www.sharepointexperts.com/training.htm ______________________________________________________________________ "Brian Orrell" <brian.orrell@REMOVETHISTEXTmethodexperts.com> wrote in message news:edchOOi%23DHA.3816@TK2MSFTNGP09.phx.gbl... > What about the lists themselves? In other words, SharePoint chooses to show > an "Edit Item" button on the toolbar even when the list is not editable by > the logged in user. > > Any thoughts? > > "Gregg Smith" <SharePoint_MSDN@hotmail.com> wrote in message > news:eZbFP8h%23DHA.1424@TK2MSFTNGP12.phx.gbl... > > This is going to take a bit of custom code on your part. The navbars are > > just output webbots and have limited capabilities, discretionary output is > > not among them. You would need to make your own custom control that would > > build that bar. > > > > The default list views do not have any capability to read your membership > > and output accordingly. A custom web part might be your answer here, but > you > > might also be able to fake a bit of it using a dataview with a bit of > > javascript in the XSL transform. > > > > The Modify settings and columns bit is pretty straightforward code that is > > defined in the last few lines of the SCHEMA.xml file. If you understand > CAML > > you can write a SWITCH statment in there that should get you going. > > > > > > "Brian Orrell" <brian.orrell@REMOVETHISTEXTmethodexperts.com> wrote in > > message news:ujwoXAh%23DHA.2824@tk2msftngp13.phx.gbl... > > > I realize that this was in the help file of WSS saying that it was not > > > designed this way, but I'm wondering if there are any suggestions as to > > how > > > to cause list webparts and navbars to display differently, based on the > > > security of the user. > > > > > > For example, if I do not have editing capabilities for a list, is there > a > > > way to not show the Edit button? The same goes for side-bar areas that > > have > > > the modify settings and column feature. > > > > > > Any and all help greatly appreciated, > > > Brian Orrell > > > > > > -- > > > Brian Orrell > > > MethodExperts, LLC > > > brian.orrell@REMOVETHISTEXTmethodexperts.com > > > > > > > > > > > >
- Next message: Dustin Miller [MVP]: "Re: Fileserver in stead of Database"
- Previous message: Gregg Smith: "Re: [solution but another problem] Re: error trying to read Web.Config (FileIOPermission)"
- In reply to: Brian Orrell: "Re: Securing Link/URL Display"
- Next in thread: Brian Orrell: "Re: Securing Link/URL Display"
- Reply: Brian Orrell: "Re: Securing Link/URL Display"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|