Merge pull request #858 from turbo124/develop

Permissions fields for Invoice Transformer
This commit is contained in:
David Bomba 2016-05-12 08:29:55 +10:00
commit e738a58a42
3 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,6 @@
<?php namespace App\Http\Controllers; <?php namespace App\Http\Controllers;
use Auth; use Auth;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Utils; use Utils;
use Response; use Response;

View File

@ -389,6 +389,7 @@ if (!defined('CONTACT_EMAIL')) {
define('ACTION_RESTORE', 'restore'); define('ACTION_RESTORE', 'restore');
define('ACTION_ARCHIVE', 'archive'); define('ACTION_ARCHIVE', 'archive');
define('ACTION_CLONE', 'clone');
define('ACTION_CONVERT', 'convert'); define('ACTION_CONVERT', 'convert');
define('ACTION_DELETE', 'delete'); define('ACTION_DELETE', 'delete');

View File

@ -26,6 +26,8 @@ class UserTransformer extends EntityTransformer
'notify_viewed' => (bool) $user->notify_viewed, 'notify_viewed' => (bool) $user->notify_viewed,
'notify_paid' => (bool) $user->notify_paid, 'notify_paid' => (bool) $user->notify_paid,
'notify_approved' => (bool) $user->notify_approved, 'notify_approved' => (bool) $user->notify_approved,
'is_admin' => (bool) $user->is_admin,
'permissions' => (int) $user->getOriginal('permissions'),
]; ];
} }
} }