Author Topic: [solved] Getting users page editing permission  (Read 1927 times)

Offline Monky

  • Posts: 47
  • Gender: Male
    • Segelclub Würmsee Starnberg e.V.
[solved] Getting users page editing permission
« on: February 21, 2010, 08:37:02 PM »
Hi, I am trying to display text IFF the user has the right to edit the current page (doesnt have to be an admin, could be some other user group that is allowed to edit this page).

I tried with a droplet that gets displayed in the footer of every page:
Code: [Select]
nonsense removed by author
But somehow this displays the link even when I am not logged in at all. Am I using the functions wrongly?

How to do this properly?
« Last Edit: February 21, 2010, 09:55:34 PM by Monky »

Offline pcwacht

  • Posts: 2923
  • Gender: Male
    • Dutch ICT info
http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....

Offline Monky

  • Posts: 47
  • Gender: Male
    • Segelclub Würmsee Starnberg e.V.
Re: Getting users page editing permission
« Reply #2 on: February 21, 2010, 09:54:59 PM »
wow thanks alot. Looks like I missed that place to look for existing code.
And its obviously not as easy as my try above.

Just a little sidemark: This has to change with WB3.  8-) For stuff like this there should be functions in the framework that can be used from the outside.

Offline pcwacht

  • Posts: 2923
  • Gender: Male
    • Dutch ICT info
Re: [solved] Getting users page editing permission
« Reply #3 on: February 21, 2010, 10:14:49 PM »
Side effect of integrating this and that is that wb will be bloated or sluggish


I like it the way it is... ;)
http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....