Restrict extensions to customer group

twisted1919

Administrator
Staff member
@Stanley Ukadike - In an extension that runs in the customers area, you have access to Yii::app()->customer object and you can call something like:
Code:
Yii::app()->customer->getModel()->group_id
To see if the customer is in the right group or not and if he is do something special for him.
 
Top