fixed permission trait..
This commit is contained in:
parent
e2d9f0cb92
commit
00c1ea15b3
@ -405,7 +405,7 @@ trait Permissions
|
|||||||
|
|
||||||
// Fire event to find the proper controller for common API endpoints
|
// Fire event to find the proper controller for common API endpoints
|
||||||
if (in_array($table, ['contacts', 'documents', 'transactions'])) {
|
if (in_array($table, ['contacts', 'documents', 'transactions'])) {
|
||||||
$controller = config('type.' . request()->get('type') . '.permission_name');
|
$controller = config('type.' . request()->get('type') . '.permission.prefix');
|
||||||
} else {
|
} else {
|
||||||
$route = app(Route::class);
|
$route = app(Route::class);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user