Some cleanup, setup improvements and other misc items
This commit is contained in:
@@ -70,6 +70,14 @@ class Model_Account extends Model_Auth_UserDefault {
|
||||
return $processed ? $o->find_all() : $o->where_unprocessed()->find_all();
|
||||
}
|
||||
|
||||
public function isAdmin() {
|
||||
return ($this->RTM->loaded() AND is_null($this->RTM->parent_id));
|
||||
}
|
||||
|
||||
public function isReseller() {
|
||||
return $this->RTM->loaded();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of due invoices for this account
|
||||
*
|
||||
|
Reference in New Issue
Block a user