Fixed Paypal IPN and other minor items
This commit is contained in:
@@ -63,8 +63,9 @@ class Controller_Reseller_Account extends Controller_Account {
|
||||
|
||||
public function action_view() {
|
||||
$ao = ORM::factory('Account',$this->request->param('id'));
|
||||
if (! $ao->loaded() OR ! $ao->status)
|
||||
HTTP::redirect(URL::link('reseller','welcome'));
|
||||
|
||||
if (! $ao->loaded() OR ! $ao->status OR ! Auth::instance()->authorised($ao))
|
||||
throw HTTP_Exception::factory(403,'Account either doesnt exist, or you are not authorised to see it');
|
||||
|
||||
Block::factory()
|
||||
->title(sprintf('Active Service for Account: %s',$ao->accnum()))
|
||||
|
Reference in New Issue
Block a user