removed wizard permissions
This commit is contained in:
parent
551c27c3d7
commit
94e4e951b9
@ -12,6 +12,18 @@ class Companies extends Controller
|
||||
{
|
||||
use Uploads;
|
||||
|
||||
/**
|
||||
* Instantiate a new controller instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// Add CRUD permission check
|
||||
$this->middleware('permission:create-common-companies')->only(['create', 'store', 'duplicate', 'import']);
|
||||
$this->middleware('permission:read-common-companies')->only(['index', 'show', 'edit', 'export']);
|
||||
$this->middleware('permission:update-common-companies')->only(['update', 'enable', 'disable']);
|
||||
$this->middleware('permission:delete-common-companies')->only('destroy');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
|
@ -12,6 +12,18 @@ use App\Models\Setting\Currency;
|
||||
|
||||
class Currencies extends Controller
|
||||
{
|
||||
/**
|
||||
* Instantiate a new controller instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// Add CRUD permission check
|
||||
$this->middleware('permission:create-settings-currencies')->only(['create', 'store', 'duplicate', 'import']);
|
||||
$this->middleware('permission:read-settings-currencies')->only(['index', 'show', 'edit', 'export']);
|
||||
$this->middleware('permission:update-settings-currencies')->only(['update', 'enable', 'disable']);
|
||||
$this->middleware('permission:delete-settings-currencies')->only('destroy');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
|
@ -4,12 +4,20 @@ namespace App\Http\Controllers\Wizard;
|
||||
|
||||
use Illuminate\Routing\Controller;
|
||||
use App\Traits\Modules;
|
||||
use App\Models\Module\Module;
|
||||
|
||||
class Finish extends Controller
|
||||
{
|
||||
use Modules;
|
||||
|
||||
/**
|
||||
* Instantiate a new controller instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// Add CRUD permission check
|
||||
$this->middleware('permission:read-admin-panel')->only(['index', 'show', 'edit', 'export']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
|
@ -11,6 +11,18 @@ use App\Models\Setting\Tax;
|
||||
|
||||
class Taxes extends Controller
|
||||
{
|
||||
/**
|
||||
* Instantiate a new controller instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// Add CRUD permission check
|
||||
$this->middleware('permission:create-settings-taxes')->only(['create', 'store', 'duplicate', 'import']);
|
||||
$this->middleware('permission:read-settings-taxes')->only(['index', 'show', 'edit', 'export']);
|
||||
$this->middleware('permission:update-settings-taxes')->only(['update', 'enable', 'disable']);
|
||||
$this->middleware('permission:delete-settings-taxes')->only('destroy');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
|
@ -756,6 +756,36 @@ class Version200 extends Listener
|
||||
'admin' => [
|
||||
'read-modules-token',
|
||||
'update-modules-token',
|
||||
'create-wizard-companies',
|
||||
'read-wizard-companies',
|
||||
'update-wizard-companies',
|
||||
'create-wizard-currencies',
|
||||
'read-wizard-currencies',
|
||||
'update-wizard-currencies',
|
||||
'delete-wizard-currencies',
|
||||
'create-wizard-taxes',
|
||||
'read-wizard-taxes',
|
||||
'update-wizard-taxes',
|
||||
'create-wizard-finish',
|
||||
'read-wizard-finish',
|
||||
'update-wizard-finish',
|
||||
],
|
||||
'manager' => [
|
||||
'read-modules-token',
|
||||
'update-modules-token',
|
||||
'create-wizard-companies',
|
||||
'read-wizard-companies',
|
||||
'update-wizard-companies',
|
||||
'create-wizard-currencies',
|
||||
'read-wizard-currencies',
|
||||
'update-wizard-currencies',
|
||||
'delete-wizard-currencies',
|
||||
'create-wizard-taxes',
|
||||
'read-wizard-taxes',
|
||||
'update-wizard-taxes',
|
||||
'create-wizard-finish',
|
||||
'read-wizard-finish',
|
||||
'update-wizard-finish',
|
||||
],
|
||||
'customer' => [
|
||||
'read-customer-panel',
|
||||
|
@ -86,10 +86,6 @@ class Roles extends Seeder
|
||||
'widgets-total-expenses' => 'r',
|
||||
'widgets-total-income' => 'r',
|
||||
'widgets-total-profit' => 'r',
|
||||
'wizard-companies' => 'c,r,u',
|
||||
'wizard-currencies' => 'c,r,u,d',
|
||||
'wizard-finish' => 'c,r,u',
|
||||
'wizard-taxes' => 'c,r,u',
|
||||
],
|
||||
'manager' => [
|
||||
'admin-panel' => 'r',
|
||||
|
Loading…
x
Reference in New Issue
Block a user