JAccess::checkGroup
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JAccess::checkGroup[edit]
Description[edit]
Method to check if a group is authorised to perform an action, optionally on an asset.
Template:Description:JAccess::checkGroup [Edit Descripton]
Since[edit]
Synopsis[edit]
public static JAccess::checkGroup ($groupId, $action, $asset=null)
Parameter | Type | Default | Description |
---|---|---|---|
$groupId | integer | The path to the group for which to check authorisation. | |
$action | string | The name of the action to authorise. | |
$asset | mixed | null | Integer asset id or the name of the asset as a string. Defaults to the global asset node. |
Returns[edit]
boolean True if authorised.
Defined in[edit]
libraries/joomla/access/access.php
Referenced by[edit]
See also[edit]
Template:SeeAlso:JAccess::checkGroup
Examples[edit]
<CodeExamplesForm />