Skip to content

Commit

Permalink
Merge pull request #305 from eve-seat/dev
Browse files Browse the repository at this point in the history
Merge v0.12.3 into master
  • Loading branch information
eve-seat committed Dec 29, 2014
2 parents 96ee40c + a54d9d5 commit 62d5171
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/config/seat.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
|
*/

'version' => '0.12.2',
'version' => '0.12.3',

/*
|--------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions app/controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getSearch()
|--------------------------------------------------------------------------
*/

if(!Auth::isSuperUser() || empty(Session::get('valid_keys')))
if(!Auth::isSuperUser() && count(Session::get('valid_keys')) <= 0)
return View::make('layouts.components.flash')
->withErrors('No API Keys are defined to show you any information. Please enter at least one.');

Expand Down Expand Up @@ -227,8 +227,8 @@ public function getSearch()
->join('invTypes', 'a.typeID', '=', 'invTypes.typeID');

// If the user is not a superuser, filter the results down to keys they own
if (!\Auth::isSuperUser() )
$corporation_assets = $corporation_assets->whereIn('corporation_assetlist.corporationID', Session::get('corporation_affiliations'));
if (!\Auth::hasAccess('asset_manager'))
$corporation_assets = $corporation_assets->whereIn('a.corporationID', Session::get('corporation_affiliations'));

// Complete the search
$corporation_assets = $corporation_assets->where('invTypes.typeName', 'like', '%' . Input::get('q') . '%')
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"scripts": {
"post-install-cmd": [
"php -r \"copy('app/config/env-sample.php', '.env.php');\"",
"php artisan clear-compiled",
"php artisan optimize"
],
Expand Down

0 comments on commit 62d5171

Please sign in to comment.