Enabled Search, Improved Navbar, Fixed Application Authorisation and some other minor fixes

This commit is contained in:
Deon George
2013-05-08 19:00:47 +10:00
parent 364cb58b7b
commit ce17247db6
27 changed files with 877 additions and 67 deletions

View File

@@ -20,6 +20,10 @@ class Model_RTM extends ORM_OSB {
);
public function customers(Model_RTM $rtmo) {
// If our RTM is NULL, then we are our only customer.
if (is_null($rtmo->id))
return (array(Auth::Instance()->get_user()));
$result = array();
foreach ($rtmo->agents_direct() as $artmo)