Config type add hide for Document item columns..
This commit is contained in:
@ -62,9 +62,7 @@ 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)
|
||||
@ -96,4 +94,17 @@ abstract class Document extends Component
|
||||
|
||||
return $permission;
|
||||
}
|
||||
|
||||
public function getHideFromConfig($type, $config_key)
|
||||
{
|
||||
$hide = false;
|
||||
|
||||
$hides = config('type.' . $type . '.hide');
|
||||
|
||||
if (!empty($hides) && (in_array($config_key, $hides))) {
|
||||
$hide = true;
|
||||
}
|
||||
|
||||
return $hide;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user