Craft\AmForms_SettingsController::__construct PHP Method

__construct() public method

Make sure the current has access.
public __construct ( )
    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.'));
        }
    }