public function __construct() { $user = craft()->userSession->getUser(); if (!$user->can('accessAmFormsSettings')) { throw new HttpException(403, Craft::t('This action may only be performed by users with the proper permissions.')); } }