add permission dynamic..

This commit is contained in:
Cüneyt Şentürk
2021-01-09 19:16:30 +03:00
parent 0a4e5cd0d6
commit fd2054cebe
3 changed files with 11 additions and 90 deletions

View File

@ -62,10 +62,10 @@ abstract class Document extends Component
return $route;
}
$prefix = config("type.' . $type . '.route.prefix");
$prefix = config("type.' . $type . '.route.prefix");
}
public function getPermissionFromConfig($type, $config_key, $action)
public function getPermissionFromConfig($type, $config_key)
{
$permission = '';
@ -78,7 +78,7 @@ abstract class Document extends Component
$group = config('type.' . $type . '.group');
$prefix = config("type.' . $type . '.permission.prefix");
$permission = $action . '-';
$permission = $config_key . '-';
// if use module set module alias
if (!empty($alias)) {