FOFPlatformInterface::authorise
Perform an ACL check. Please note that FOF uses by default the Joomla! CMS convention for ACL privileges, e.g core.edit for the edit privilege.
If your platform uses different conventions you'll have to override the FOF defaults using fof.xml or by specialising the controller.
Signature
public function authorise(string
$action,
string
$assetname )
Parameters
-
$action
- The ACL privilege to check, e.g. core.edit
-
$assetname
- The asset name to check, typically the component's name
Returns
- boolean
- True if the user is allowed this action