subscription_check
Verifies if a user has access to a publication via the subscription hooks.
Description
This function executes the XQuery file located in your current skin, named xql/subscription_check.xql and passes the set of parameters to this function.
Parameters
- action
- subscription_check
- resource
- The name of the requested resource.
- type
-
The type of resource being requested such as
docortoc. - lang
- A language version of a publication.
- pub
- A publication, which is a logical grouping of information (topics and multimedia) related to a specific subject, containing one or more language versions.
Example URL
http://<host>:<port>/<context>/web/content.xql?action=subscription_check&resource=<value>&type=<value>&lang=<value>&pub=<value>
Successful Result
The return of this function is determined by the XQuery script xql/subscription_check.xql.
Failed Result
The errors thrown by this function are determined by the XQuery script xql/subscription_check.xql.