formatting
This commit is contained in:
@ -84,7 +84,7 @@ class Login extends Controller
|
||||
}
|
||||
|
||||
// Check if is customer
|
||||
if ($user->contact) {
|
||||
if ($user->can('read-client-portal')) {
|
||||
$path = session('url.intended', 'portal');
|
||||
|
||||
// Path must start with 'portal' prefix
|
||||
|
@ -81,7 +81,7 @@ class Users extends Controller
|
||||
*/
|
||||
public function edit(User $user)
|
||||
{
|
||||
if ($user->contact) {
|
||||
if ($user->can('read-client-portal')) {
|
||||
// Show only roles with customer permission
|
||||
$roles = Role::all()->reject(function ($r) {
|
||||
return !$r->hasPermission('read-client-portal');
|
||||
|
@ -65,7 +65,7 @@ class Bills extends Controller
|
||||
|
||||
$currencies = Currency::enabled()->orderBy('name')->pluck('name', 'code')->toArray();
|
||||
|
||||
$currency = Currency::where('code', $bil->currency_code)->first();
|
||||
$currency = Currency::where('code', $bill->currency_code)->first();
|
||||
|
||||
$account_currency_code = Account::where('id', setting('default.account'))->pluck('currency_code')->first();
|
||||
|
||||
|
Reference in New Issue
Block a user