Re: Securing Link/URL Display

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dustin Miller [MVP] (dustin-s-p-a-m_at_sharepointexperts.com)
Date: 02/23/04


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
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Re: Conditional Drop Down
    ... There are some funky ... Javascript things you *can* do but since the world is .NET (at least the ... SharePoint world is) then you should probably create a custom .aspx form ... > connected drop down lists such that list 'B' contains values ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: opening txt files in a document library.
    ... the Javascript I mentioned is the DispDocItemEx Javascript ... If you look at how a SharePoint doclib ... So the ProgId (the program to launch the file?) is something called ... Perhaps you can a) move Notepad higher up in the Association list chain ...
    (microsoft.public.sharepoint.portalserver)
  • RE: Excel SharePoint 2003 Integration
    ... I was using SharePoint 2 and now I upgraded to SharePoint 3. ... Synchronize an Excel list with the SharePoint site ... Unlink the lists ...
    (microsoft.public.excel.misc)
  • Re: Microsofty Sharepoint dll viewed in Object browser
    ... The web services are available from the server. ... SharePoint Services, such as for creating or deleting sites. ... Lists Provides methods for working with lists and list data. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Persist user information using only out-of-the-box web parts
    ... Custom lists and the Data View Web Part will do everything you need -- In fact, your example is one that's taught in the SharePoint Bootcamp (link in my ... I wanted to have each user only change the XML portion of the web part, ... Can't create a custom web part (real easy to retrieve the user information in the tool pane). ...
    (microsoft.public.sharepoint.windowsservices)