_ = request.getText
acl = Page(request, pagename).getACL(request)
aclstring = acl.getString()
# Check if page has acls and user admin rights
if aclstring != '' and not request.user.may.admin(pagename):
result = _('You are not allowed to perform this action.')
# Check if user is superuser and allowed to delete
elif not request.user.may.delete(pagename)or not request.user.isSuperUser():
result = _('You are not allowed to perform this action.')
# Check if page exists
elif Page(request, pagename).exists() == True:
result = _('You cannot purge existing pages. You have to delete them first.')
Beispiele: Urteile
http://wiki.mobbing-gegner.de/ArbeitsSchutz/ForumsKategorien?action=show
http://wiki.mobbing-gegner.de/ArbeitsSchutz/ForumsKategorien?action=show
http://wiki.mobbing-gegner.de/MobBing/Urteile/DatenBank
- - Topic-Ids im Forum suche in den Postings
#acl detlevlengsfeld:write +all:readacl detlevlengsfeld:read,write all:read&
- - Es fehlt eine acl für makros! - die Rückgabe sollte über Parameter steuerbar sein (Link pur,Link+Anz.-Zeilen,mit Kommentar)
Wiki/Installation/Macros/SQL (last modified 2008-11-04 07:00:06)