Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds


  Asked By: Laci    Date: Nov 21    Category: Sharepoint    Views: 1500

Is there any way to attach a permission string to this?
Specifically speaking, we don't want anonymous users to see the wiki edit bar,
but we do want authenticated users (contributors and above) to be able to see it
and use it.
I tried adding the permission string property on the masterpage and it threw up,
I also tried adding it to the layout page(my modified version of wkpstd.aspx in
the hive)and it also threw up.
An example of what I added:



5 Answers Found

Answer #1    Answered By: Jose Scott     Answered On: Nov 21

I'm not sure I see the problem. The PlaceHolderMiniConsole should only show
up when you are in edit  mode and anonymous  users are ReadOnly. So an
anonymous user should never be able to see the console or edit the console
whether you put permissions on it or not.

Or am I missing something?

Answer #2    Answered By: Taylor Clark     Answered On: Nov 21

You are..on a wiki  site, the anonymous  user still sees the "history" and
"incoming links" portion of the miniconsole.
When a user clicks the either link, they are prompted for authentication..
Poor design if you ask me.

Answer #3    Answered By: Anthony Rutledge     Answered On: Nov 21

Solved it..
Here is what I did..
Went into the document templates folder where our custom version  o fwkpstd.aspx
is kept and edited in notepad..
Here is the unmodified code:
<asp:Content ContentPlaceHolderId="PlaceHolderMiniConsole" runat="server">
TemplateName="WikiMiniConsole" ControlMode="Display" runat="server"/>
Here is the modified  code:
<asp:Content ContentPlaceHolderId="PlaceHolderMiniConsole" runat="server">
<Sharepoint:SPSecurityTrimmedControl runat="server"
TemplateName="WikiMiniConsole" ControlMode="Display" runat="server"/>

Now the only thing left for me to do is tweak the permissions in the permission
string, but that is small potatoes.

Answer #4    Answered By: Heena Nagori     Answered On: Nov 21

Make sure you test performance on the page now that you've made that change.
Security trimming existing controls on the page will tend to throw
authentication and caching out of whack. It may actually now force everyone
to authenticate when they come to the page to find out whether they have
the ManageWeb permission  or not. Not sure that it will mess this up in this
case, but you should test to be sure.

Answer #5    Answered By: Aishwarya Karmarkar     Answered On: Nov 21

Good thought..have tested as anonymous  and as a site owner and it seems to work
as desired..
But when we test with different permissions your scenario may come into play.

Didn't find what you were looking for? Find more on PlaceHolderMiniConsole Or get search suggestion and latest updates.

Related Topics:


Related Post