Replace status with active in tables
This commit is contained in:
@@ -43,7 +43,7 @@ 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 OR ! Auth::instance()->authorised($ao))
|
||||
if (! $ao->loaded() OR ! $ao->active OR ! Auth::instance()->authorised($ao))
|
||||
throw HTTP_Exception::factory(403,'Account either doesnt exist, or you are not authorised to see it');
|
||||
|
||||
$this->meta->title = 'Customer: '.$ao->name();
|
||||
|
Reference in New Issue
Block a user