PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki
Child packages:

internal package Foswiki::Access

A singleton object of this class manages the access control database.

ClassMethod new($session)

Constructor.

ObjectMethod finish()

Break circular references.

ObjectMethod getReason() → $string

Return a string describing the reason why the last access control failure occurred.

ObjectMethod haveAccess($mode, $User, $web, $topic, $attachment) → $boolean

ObjectMethod haveAccess($mode, $User, $meta) → $boolean

ObjectMethod haveAccess($mode, $User, $address) → $boolean

  • $mode - 'VIEW', 'CHANGE', 'CREATE', etc. (defaults to VIEW)
  • $cUID - Canonical user id (defaults to current user)
Check if the user has the given mode of access to the topic. This call may result in the topic being read.

ObjectMethod getCacheEntry($meta, $mode, $cUID) → $boolean

returns the cached access result for a given meta object

ObjectMethod setCacheEntry($meta, $mode, $cUID, $boolean) → $boolean

caches the result for a computed access right

ObjectMethod unsetCacheEntry($meta, $mode, $cUID)

deletes a cache result for a computed access right

Kontakt
Pädagogische Hochschule Schwyz
Zaystrasse 42
CH-6410 Goldau
T +41 41 859 05 90
info@phsz.ch Dies ist ein Wiki des Fachkerns Medien und Informatik der Pädagogischen Hochschule Schwyz. Für Fragen wenden Sie sich bitte an wikiadmin@phsz.ch
This page was cached on 07 Feb 2025 - 09:03.
This website is using cookies. More info. That's Fine