/** * Retrieve current role * * @return string|null */ public function getAclRoleId() { if ($this->_session->hasUser()) { return $this->_session->getUser()->getAclRole(); } return null; }
/** * {@inheritdoc} */ public function getUserId() { return $this->_adminSession->hasUser() ? (int) $this->_adminSession->getUser()->getId() : null; }