Specific Registered Users

This area is devoted to Magento Form Builder SmartFormer Gold. Please ask questions, report bugs and share ideas here.

Specific Registered Users

Postby american » Fri Oct 14, 2016 1:31 am

Hi,
I want to know how to make access to certain web form, for a certain group of registered users only, and not to all registered users.
As stated on the product features:

Security
Security is such a widely-met problem when dealing with forms. To avoid spamming, Smart Former provides three variants of Captcha code. You select one of them and add it to your form. You can also make your Captcha re-loadable with no reloading of the rest of the form (if users can not read a Captcha - they reload the image, while the rest of their submitted data is kept).
There is also front-end and back-end access control. You can limit the access to your forms, so that only the selected administrators can manage them. You can also limit the front-end access to certain groups of your users only.


Thanks in advance
american
 
Posts: 12
Joined: Fri Oct 14, 2016 1:28 am

Re: Specific Registered Users

Postby IToris team » Fri Oct 14, 2016 8:46 pm

Hi american,

Open your form in backend for editing. In menu select Tools -> PHP Editor. Before $form->getPostedValues(); write:

Code: Select all
$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
if ($groupId != 3) { //get the group ID in backend following Customers -> Customer Groups
    echo 'Your are not allowed to access the form!';
    return;
}




Best regards,
ITORIS Team
IToris team
Site Admin
 
Posts: 1685
Joined: Mon Jan 19, 2009 12:33 pm


Return to SmartFormer Gold for Magento

Who is online

Users browsing this forum: No registered users and 1 guest

cron