Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 04:33:37 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155533 Posts in 21713 Topics by 7739 Members
Latest Member: audillino
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [solved] Getting users page editing permission  (Read 452 times)
Monky
Development Team
*****
Offline Offline

Posts: 47



WWW
« 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:
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 » Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #1 on: February 21, 2010, 09:47:10 PM »

http://www.websitebakers.com/pages/droplets/official-library/other/edit-this-page.php

droplet exists.


have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Monky
Development Team
*****
Offline Offline

Posts: 47



WWW
« 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.  cool For stuff like this there should be functions in the framework that can be used from the outside.
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« 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... Wink
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!