You are here

public static function InstapageCmsPluginConnector::currentUserCanManage in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/connectors/InstapageCmsPluginConnector.php \InstapageCmsPluginConnector::currentUserCanManage()

Gets the current user access rights to the Instapage plugin.

Return value

bool Returns true if user can manage the Instapage plugin.

2 calls to InstapageCmsPluginConnector::currentUserCanManage()
InstapageCmsPluginAjaxController::doAction in core/InstapageCmsPluginAjaxController.php
Executes an action set in the request.
InstapageCmsPluginDebugLogModel::getLogHTML in core/models/InstapageCmsPluginDebugLogModel.php
Gets the HTML with debug log. Template for th og is in /templates/log.php file.

File

core/connectors/InstapageCmsPluginConnector.php, line 130

Class

InstapageCmsPluginConnector
Main connector class, used to integrate with PHP-based CMSes. It's job is to detect a CMS that executes the code and select proper CMS Connector.

Code

public static function currentUserCanManage() {
  return self::getSelectedConnector()
    ->currentUserCanManage();
}