fixed permission trait..

This commit is contained in:
Cüneyt Şentürk 2021-01-10 00:04:28 +03:00
parent e2d9f0cb92
commit 00c1ea15b3

View File

@ -405,7 +405,7 @@ trait Permissions
// Fire event to find the proper controller for common API endpoints
if (in_array($table, ['contacts', 'documents', 'transactions'])) {
$controller = config('type.' . request()->get('type') . '.permission_name');
$controller = config('type.' . request()->get('type') . '.permission.prefix');
} else {
$route = app(Route::class);