/** * Checks if user authorized for group/action. * * @param integer $userId * @param string $groupName * @param string $actionName * @param array $extra * @return boolean */ public function isUserAuthorized($userId, $groupName, $actionName = null, $extra = null) { if ($extra !== null && !is_array($extra)) { trigger_error("`ownerId` parameter has been deprecated, pass `extra` parameter instead"); } return $this->service->isActionAuthorizedForUser($userId, $groupName, $actionName, $extra); }
/** * Checks if user authorized for group/action. * * @param integer $userId * @param string $groupName * @param string $actionName * @param userId $ownerId * @return boolean */ public function isUserAuthorized($userId, $groupName, $actionName = null, $ownerId = null) { return $this->service->isActionAuthorizedForUser($userId, $groupName, $actionName, $ownerId); }