mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #858 from turbo124/develop
Permissions fields for Invoice Transformer
This commit is contained in:
commit
e738a58a42
@ -1,7 +1,6 @@
|
||||
<?php namespace App\Http\Controllers;
|
||||
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Utils;
|
||||
use Response;
|
||||
|
@ -389,6 +389,7 @@ if (!defined('CONTACT_EMAIL')) {
|
||||
|
||||
define('ACTION_RESTORE', 'restore');
|
||||
define('ACTION_ARCHIVE', 'archive');
|
||||
define('ACTION_CLONE', 'clone');
|
||||
define('ACTION_CONVERT', 'convert');
|
||||
define('ACTION_DELETE', 'delete');
|
||||
|
||||
|
@ -26,6 +26,8 @@ class UserTransformer extends EntityTransformer
|
||||
'notify_viewed' => (bool) $user->notify_viewed,
|
||||
'notify_paid' => (bool) $user->notify_paid,
|
||||
'notify_approved' => (bool) $user->notify_approved,
|
||||
'is_admin' => (bool) $user->is_admin,
|
||||
'permissions' => (int) $user->getOriginal('permissions'),
|
||||
];
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user